Menu

exclude "INFO:" outputs to terminal in "bw" and "map_adapt"

Help
Orest
2014-12-10
2014-12-11
  • Orest

    Orest - 2014-12-10

    I'm experimenting by making a program that automates the process of adaptation from the standard acoustic model, the program is calling these functions (sphinx_fe, bw, map_adapt) from system calls (example: system ("texthere"); ). But when I execute sphinx_fe, bw and map_adapt I would not like to see any "INFO:" output, only warnings or errors if there are any.

    In order to do that for sphinx_fe, I modified the sphinx_fe source code by omitting the relevant lines of code that print on screen, and by recompiling it gives the desired effect.

    My question: is there any nicer way to do that without having to modify every single line of code that prints "INFO" type output? (because I will need this omission also with bw and map_adapt)

     

    Last edit: Orest 2014-12-10
    • bic-user

      bic-user - 2014-12-10

      you can redirect log by adding

          -logfn /dev/null
      
       

      Last edit: Nickolay V. Shmyrev 2014-12-11
      • Alexander Solovets

        You can modify sphinx_fe' or make your own binary and callerr_set_debug_level(ERR_ERROR)' to see only errors. See
        sphinxbase/include/sphinxbase/err.h for the full list of possible options. I think it's a good idea to add a corresponding command-line switch to a core set of arguments. What do you think, Nickolay?

         

        Last edit: Nickolay V. Shmyrev 2014-12-11
        • Nickolay V. Shmyrev

          I think it's ok as is now.

           

Log in to post a comment.

MongoDB Logo MongoDB