pocketsphinx recognizes partial sentences - cmusphinx

I am using pocketsphinx to recognize a series of commands, but I am getting partial sentences from time to time.
For example, my grammar is similar to this:
#JSGF V1.0 ISO8859-1 es;
grammar fsg.prueba;
public <ejemplo> = (<1>|<2>|<3>|<4>);
<1>=HELLO I TALK BUT I DO NOT MAKE IT LONG;
<2>=HELLO I TALK A LOT TO MAKE IT LONG;
<3>=HELLO;
<4>=HELLO I TALK A LOT;
If I say HELLO I TALK BUT, pocketsphinx recognizes that as if it was something in the grammar.
Can I make pocketsphinx recognize only whole sentences?
EDIT: I am calling pocketsphinx with this command: pocketsphinx_continuous -hmm /usr/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k -jsgf ~/grammar.jsgf -dict /usr/share/pocketsphinmodel/lm/en_US/cmu07a.dic -samprate 16000, and when I say "HELLO I TALK BUT", pocketsphinx shows this in the terminal:
INFO: fsg_search.c(1032): 208 frames, 6860 HMMs (32/fr), 8218 senones (39/fr), 2218 history entries (10/fr)
INFO: fsg_search.c(1417): Start node <sil>.0:2:37
INFO: fsg_search.c(1417): Start node <sil>.0:2:37
INFO: fsg_search.c(1417): Start node <sil>.0:2:37
INFO: fsg_search.c(1417): Start node <sil>.0:2:37
INFO: fsg_search.c(1417): Start node <sil>.0:2:37
INFO: fsg_search.c(1417): Start node <sil>.0:2:37
INFO: fsg_search.c(1417): Start node <sil>.0:2:37
INFO: fsg_search.c(1417): Start node <sil>.0:2:37
INFO: fsg_search.c(1417): Start node <sil>.0:2:38
INFO: fsg_search.c(1417): Start node <sil>.0:2:38
INFO: fsg_search.c(1456): End node I.205:207:207 (-736)
INFO: fsg_search.c(1456): End node <sil>.204:206:207 (-762)
INFO: fsg_search.c(1456): End node TO(2).189:199:207 (-1358)
INFO: fsg_search.c(1456): End node LOT.159:177:207 (-2184)
INFO: fsg_search.c(1456): End node LOT.159:177:207 (-2184)
INFO: fsg_search.c(1456): End node BUT.148:165:207 (-2522)
INFO: fsg_search.c(1680): lattice start node <s>.0 end node </s>.208
INFO: ps_lattice.c(1365): Normalizer P(O) = alpha(</s>:208:208) = -1077291
INFO: ps_lattice.c(1403): Joint P(O,S) = -1077297 P(S|O) = -6
000000003: HELLO I TALK BUT

Related

moveit package following instructions provided but faced error after running in ros 2

[robot_state_publisher-3] [INFO] [1672396573.523060458] [robot_state_publisher]: got segment link6
[robot_state_publisher-3] [INFO] [1672396573.523065047] [robot_state_publisher]: got segment world
[ERROR] [robot_state_publisher-3]: process[robot_state_publisher-3] failed to terminate '5' seconds after receiving 'SIGINT', escalating to 'SIGTERM'
[INFO] [robot_state_publisher-3]: sending signal 'SIGTERM' to process[robot_state_publisher-3]
[ERROR] [robot_state_publisher-3]: process has died [pid 87783, exit code -15, cmd '/opt/ros/foxy/lib/robot_state_publisher/robot_state_publisher --ros-args -r __node:=robot_state_publisher --params-file /tmp/launch_params_7xb9pf6_'].
I tried to use your moveit package following instructions provided but faced error after running
$ ros2 launch moveit_config_m1013 m1013.launch.py

How to convert .py and .ui (pyqt5 gui) file into .exe

I'm using PyQt5 GUI (.ui file) separately and using these with my .py file the program is using pandas taking input from GUI line edit doing some search in excel(pandas data frame) and then displaying output at GUI Qtableview. (cdpt.ui, cdptsearchtoll.py, cdpt.xlsx chromedriver and pyicon.ico are in folder)
my pandas is using read_html as well.
Now I want to make a .exe file using pyinstaller I 'm doing but getting error "failed to execute script"
I'm new to pyinstaller and unable to identify where the issue is? other than that my code is working fine. as expected!
please see below
C:\Users\AB43399\Desktop\cdpt_search_tool>pyinstaller -w -F -i
"C:\Users\AB43399\Desktop\cdpt_search_tool\pyicon.ico" cdptsearchtool.py
1220 INFO: PyInstaller: 3.4
1220 INFO: Python: 3.7.1
1221 INFO: Platform: Windows-10-10.0.16299-SP0
1231 INFO: wrote C:\Users\AB43399\Desktop\cdpt_search_tool\cdptsearchtool.spec
1238 INFO: UPX is not available.
1247 INFO: Extending PYTHONPATH with paths
['C:\\Users\\AB43399\\Desktop\\cdpt_search_tool',
'C:\\Users\\AB43399\\Desktop\\cdpt_search_tool']
1247 INFO: checking Analysis
1251 INFO: Building Analysis because Analysis-00.toc is non existent
1252 INFO: Initializing module dependency graph...
1273 INFO: Initializing module graph hooks...
1350 INFO: Analyzing base_library.zip ...
10235 INFO: running Analysis Analysis-00.toc
10317 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
required by c:\users\ab43399\appdata\local\programs\python\python37\python.exe
12527 INFO: Caching module hooks...
12717 INFO: Analyzing C:\Users\AB43399\Desktop\cdpt_search_tool\cdptsearchtool.py
13790 INFO: Processing pre-find module path hook PyQt5.uic.port_v3
13970 INFO: Processing pre-find module path hook PyQt5.uic.port_v2
14984 INFO: Processing pre-find module path hook distutils
15954 INFO: Processing pre-safe import module hook six.moves
23920 INFO: Processing pre-find module path hook site
23964 INFO: site: retargeting to fake-dir
'c:\\users\\ab43399\\appdata\\local\\programs\\python\\python37\\lib\\site-
packages\\PyInstaller\\fake-modules'
26263 INFO: Processing pre-safe import module hook setuptools.extern.six.moves
70917 INFO: Loading module hooks...
70917 INFO: Loading module hook "hook-distutils.py"...
71040 INFO: Loading module hook "hook-encodings.py"...
71585 INFO: Loading module hook "hook-jinja2.py"...
71673 INFO: Loading module hook "hook-lib2to3.py"...
72000 INFO: Loading module hook "hook-lxml.etree.py"...
72003 INFO: Loading module hook "hook-numpy.core.py"...
74268 INFO: Loading module hook "hook-numpy.py"...
74308 INFO: Loading module hook "hook-openpyxl.py"...
74594 INFO: Loading module hook "hook-pandas.py"...
84003 INFO: Loading module hook "hook-PIL.Image.py"...
86446 INFO: Loading module hook "hook-PIL.py"...
86479 INFO: Excluding import 'PySide'
86481 INFO: Removing import of PySide from module PIL.ImageQt
86482 INFO: Excluding import 'PyQt5'
86485 INFO: Removing import of PyQt5.QtCore from module PIL.ImageQt
86485 INFO: Removing import of PyQt5.QtGui from module PIL.ImageQt
86486 INFO: Excluding import 'tkinter'
86488 INFO: Removing import of tkinter from module PIL.ImageTk
86489 INFO: Excluding import 'PyQt4'
86493 INFO: Removing import of PyQt4 from module PIL.ImageQt
86494 INFO: Import to be excluded not found: 'FixTk'
86494 INFO: Loading module hook "hook-PIL.SpiderImagePlugin.py"...
86499 INFO: Import to be excluded not found: 'FixTk'
86500 INFO: Excluding import 'tkinter'
86502 INFO: Loading module hook "hook-pkg_resources.py"...
88979 INFO: Processing pre-safe import module hook win32com
89480 INFO: Loading module hook "hook-pycparser.py"...
89493 INFO: Loading module hook "hook-pydoc.py"...
89507 INFO: Loading module hook "hook-PyQt5.py"...
91328 WARNING: Hidden import "sip" not found!
91334 INFO: Loading module hook "hook-PyQt5.QtCore.py"...
91824 INFO: Loading module hook "hook-PyQt5.QtGui.py"...
92457 INFO: Loading module hook "hook-PyQt5.QtWidgets.py"...
93499 INFO: Loading module hook "hook-PyQt5.uic.py"...
93571 INFO: Loading module hook "hook-pytest.py"...
102252 INFO: Loading module hook "hook-pythoncom.py"...
104849 INFO: Loading module hook "hook-pytz.py"...
105540 INFO: Loading module hook "hook-pywintypes.py"...
108030 INFO: Loading module hook "hook-setuptools.py"...
111619 INFO: Loading module hook "hook-sqlite3.py"...
112534 INFO: Loading module hook "hook-sysconfig.py"...
112605 INFO: Loading module hook "hook-win32com.py"...
114057 INFO: Loading module hook "hook-xml.dom.domreg.py"...
114058 INFO: Loading module hook "hook-xml.etree.cElementTree.py"...
114076 INFO: Loading module hook "hook-xml.py"...
114078 INFO: Loading module hook "hook-_tkinter.py"...
116028 INFO: checking Tree
116033 INFO: Building Tree because Tree-00.toc is non existent
116033 INFO: Building Tree Tree-00.toc
116557 INFO: checking Tree
116558 INFO: Building Tree because Tree-01.toc is non existent
116558 INFO: Building Tree Tree-01.toc
116796 INFO: Looking for ctypes DLLs
116930 INFO: Analyzing run-time hooks ...
116943 INFO: Including run-time hook 'pyi_rth_multiprocessing.py'
116999 INFO: Including run-time hook 'pyi_rth_pkgres.py'
117006 INFO: Including run-time hook 'pyi_rth_win32comgenpy.py'
117013 INFO: Including run-time hook 'pyi_rth_qt5.py'
117060 INFO: Looking for dynamic libraries
122552 INFO: Looking for eggs
122552 INFO: Using Python library
c:\users\ab43399\appdata\local\programs\python\python37\python37.dll
122554 INFO: Found binding redirects:
[]
122614 INFO: Warnings written to
C:\Users\AB43399\Desktop\cdpt_search_tool\build\cdptsearchtool\warn-cdptsearchtool.txt
122960 INFO: Graph cross-reference written to
C:\Users\AB43399\Desktop\cdpt_search_tool\build\cdptsearchtool\xref-cdptsearchtool.html
123141 INFO: checking PYZ
123141 INFO: Building PYZ because PYZ-00.toc is non existent
123142 INFO: Building PYZ (ZlibArchive)
C:\Users\AB43399\Desktop\cdpt_search_tool\build\cdptsearchtool\PYZ-00.pyz
126145 INFO: Building PYZ (ZlibArchive)
C:\Users\AB43399\Desktop\cdpt_search_tool\build\cdptsearchtool\PYZ-00.pyz completed successfully.
126227 INFO: checking PKG
126227 INFO: Building PKG because PKG-00.toc is non existent
126228 INFO: Building PKG (CArchive) PKG-00.pkg
129181 WARNING: One binary added with two internal names.
129181 WARNING: ('libGLESv2.dll',
'C:\\users\\ab43399\\appdata\\local\\programs\\python\\python37\\lib\\site-
packages\\PyQt5\\Qt\\bin\\libGLESv2.dll',
'BINARY')
129184 WARNING: was placed previously at
129184 WARNING: ('PyQt5\\Qt\\bin\\libGLESv2.dll',
'C:\\users\\ab43399\\appdata\\local\\programs\\python\\python37\\lib\\site-
packages\\PyQt5\\Qt\\bin\\libGLESv2.dll',
'BINARY')
157741 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
157789 INFO: Bootloader c:\users\ab43399\appdata\local\programs\python\python37\lib\site-
packages\PyInstaller\bootloader\Windows-64bit\runw.exe
157789 INFO: checking EXE
157790 INFO: Building EXE because EXE-00.toc is non existent
157790 INFO: Building EXE from EXE-00.toc
157897 INFO: SRCPATH [('C:\\Users\\AB43399\\Desktop\\cdpt_search_tool\\pyicon.ico', None)]
157897 INFO: Updating icons from ['C:\\Users\\AB43399\\Desktop\\cdpt_search_tool\\pyicon.ico'] to
C:\Windows\Temp\tmplqtaq2qp
157915 INFO: Writing RT_GROUP_ICON 0 resource with 132 bytes
157915 INFO: Writing RT_ICON 1 resource with 5355 bytes
157916 INFO: Writing RT_ICON 2 resource with 67624 bytes
157917 INFO: Writing RT_ICON 3 resource with 38056 bytes
157917 INFO: Writing RT_ICON 4 resource with 21640 bytes
157919 INFO: Writing RT_ICON 5 resource with 16936 bytes
157919 INFO: Writing RT_ICON 6 resource with 9640 bytes
157919 INFO: Writing RT_ICON 7 resource with 4264 bytes
157920 INFO: Writing RT_ICON 8 resource with 2440 bytes
157920 INFO: Writing RT_ICON 9 resource with 1128 bytes
157933 INFO: Appending archive to EXE
C:\Users\AB43399\Desktop\cdpt_search_tool\dist\cdptsearchtool.exe
158455 INFO: Building EXE from EXE-00.toc completed successfully.
I have seen warning one or two places
like
91328 WARNING: Hidden import "sip" not found!
129181 WARNING: One binary added with two internal names.
but I don't understand what is missing and how to fix them are they the one who is causing the problem???
Any help/direction is really appreciated!

Azure ML Workbench Kubernetes Deployment Failed

I am trying to deploy a prediction web service to Azure using ML Workbench process using cluster mode in this tutorial (https://learn.microsoft.com/en-us/azure/machine-learning/preview/tutorial-classifying-iris-part-3#prepare-to-operationalize-locally)
The model gets sent to the manifest, the scoring script and schema
Creating
service..........................................................Error
occurred: {'Error': {'Code': 'KubernetesDeploymentFailed', 'Details':
[{'Message': 'Back-off 40s restarting failed container=...pod=...',
'Code': 'CrashLoopBackOff'}], 'StatusCode': 400, 'Message':
'Kubernetes Deployment failed'}, 'OperationType': 'Service',
'State':'Failed', 'Id': '...', 'ResourceLocation':
'/api/subscriptions/...', 'CreatedTime':
'2017-10-26T20:30:49.77362Z','EndTime': '2017-10-26T20:36:40.186369Z'}
Here is the result of checking the ml service realtime logs
C:\Users\userguy\Documents\azure_ml_workbench\projecto>az ml service logs realtime -i projecto
2017-10-26 20:47:16,118 CRIT Supervisor running as root (no user in config file)
2017-10-26 20:47:16,120 INFO supervisord started with pid 1
2017-10-26 20:47:17,123 INFO spawned: 'rsyslog' with pid 9
2017-10-26 20:47:17,124 INFO spawned: 'program_exit' with pid 10
2017-10-26 20:47:17,124 INFO spawned: 'nginx' with pid 11
2017-10-26 20:47:17,125 INFO spawned: 'gunicorn' with pid 12
2017-10-26 20:47:18,160 INFO success: rsyslog entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2017-10-26 20:47:18,160 INFO success: program_exit entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2017-10-26 20:47:22,164 INFO success: nginx entered RUNNING state, process has stayed up for > than 5 seconds (startsecs)
2017-10-26T20:47:22.519159Z, INFO, 00000000-0000-0000-0000-000000000000, , Starting gunicorn 19.6.0
2017-10-26T20:47:22.520097Z, INFO, 00000000-0000-0000-0000-000000000000, , Listening at: http://127.0.0.1:9090 (12)
2017-10-26T20:47:22.520375Z, INFO, 00000000-0000-0000-0000-000000000000, , Using worker: sync
2017-10-26T20:47:22.521757Z, INFO, 00000000-0000-0000-0000-000000000000, , worker timeout is set to 300
2017-10-26T20:47:22.522646Z, INFO, 00000000-0000-0000-0000-000000000000, , Booting worker with pid: 22
2017-10-26 20:47:27,669 WARN received SIGTERM indicating exit request
2017-10-26 20:47:27,669 INFO waiting for nginx, gunicorn, rsyslog, program_exit to die
2017-10-26T20:47:27.669556Z, INFO, 00000000-0000-0000-0000-000000000000, , Handling signal: term
2017-10-26 20:47:30,673 INFO waiting for nginx, gunicorn, rsyslog, program_exit to die
2017-10-26 20:47:33,675 INFO waiting for nginx, gunicorn, rsyslog, program_exit to die
Initializing logger
2017-10-26T20:47:36.564469Z, INFO, 00000000-0000-0000-0000-000000000000, , Starting up app insights client
2017-10-26T20:47:36.564991Z, INFO, 00000000-0000-0000-0000-000000000000, , Starting up request id generator
2017-10-26T20:47:36.565316Z, INFO, 00000000-0000-0000-0000-000000000000, , Starting up app insight hooks
2017-10-26T20:47:36.565642Z, INFO, 00000000-0000-0000-0000-000000000000, , Invoking user's init function
2017-10-26 20:47:36.715933: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instruc
tions, but these are available on your machine and could speed up CPU computations.
2017-10-26 20:47:36,716 INFO waiting for nginx, gunicorn, rsyslog, program_exit to die
2017-10-26 20:47:36.716376: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instruc
tions, but these are available on your machine and could speed up CPU computations.
2017-10-26 20:47:36.716542: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructio
ns, but these are available on your machine and could speed up CPU computations.
2017-10-26 20:47:36.716703: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructi
ons, but these are available on your machine and could speed up CPU computations.
2017-10-26 20:47:36.716860: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructio
ns, but these are available on your machine and could speed up CPU computations.
this is the init
2017-10-26T20:47:37.551940Z, INFO, 00000000-0000-0000-0000-000000000000, , Users's init has completed successfully
Using TensorFlow backend.
2017-10-26T20:47:37.553751Z, INFO, 00000000-0000-0000-0000-000000000000, , Worker exiting (pid: 22)
2017-10-26T20:47:37.885303Z, INFO, 00000000-0000-0000-0000-000000000000, , Shutting down: Master
2017-10-26 20:47:37,885 WARN killing 'gunicorn' (12) with SIGKILL
2017-10-26 20:47:37,886 INFO stopped: gunicorn (terminated by SIGKILL)
2017-10-26 20:47:37,889 INFO stopped: nginx (exit status 0)
2017-10-26 20:47:37,890 INFO stopped: program_exit (terminated by SIGTERM)
2017-10-26 20:47:37,891 INFO stopped: rsyslog (exit status 0)
Received 41 lines of log
My best guess is theres something silent happening to cause "WARN received SIGTERM indicating exit request". The rest of the scoring.py script seems to kick off - see tensorflow get initiated and the "this is the init" print statement.
http://127.0.0.1:63437 is accessible from my local machine, but the ui endpoint is blank.
Any ideas on how to get this up and running in an Azure cluster? I'm not very familiar with how Kubernetes works, so any basic debugging guidance would be appreciated.
We discovered a bug in our system that could have caused this. The fix was deployed last night. Can you please try again and let us know if you still encounter this issue?

Grunt error when running Sails.js app in Amazon ElasticBeanstalk

I am moving a Sails.js app hosted on Heroku to Amazon ElasticBeanstalk. When the application launches, it throws the following Grunt error (pulled from eb logs):
info: Sails <| .-..-.
info: v0.11.5 |\
info: /|.\
info: / || \
info: ,' |' \
info: .-'.-==|/_--'
info: `--'-------'
info: __---___--___---___--___---___--___
info: ____---___--___---___--___---___--___-__
info:
info: Server lifted in `/var/app/current`
info: To see your app, visit http://localhost:8081
info: To shut down Sails, press <CTRL> + C at any time.
debug: --------------------------------------------------------
debug: :: Mon Feb 29 2016 08:21:46 GMT+0000 (UTC)
debug: Environment : development
debug: Port : 8081
debug: --------------------------------------------------------
error: ** Grunt :: An error occurred. **
error:
------------------------------------------------------------------------
>> FileError: '../bower_components/bootstrap/less/grid.less' wasn't found in assets/styles/importer.less on line 9, column 1:
>> 8 // Import Bootstrap
>> 9 #import "../bower_components/bootstrap/less/grid.less";
>> 10 #import "../bower_components/bootstrap/less/mixins.less";
Warning: Error compiling assets/styles/importer.less
Aborted due to warnings.
Running "less:dev" (less) task
------------------------------------------------------------------------
error: Looks like a Grunt error occurred--
error: Please fix it, then **restart Sails** to continue running tasks (e.g. watching for changes in assets)
error: Or if you're stuck, check out the troubleshooting tips below.
error: Troubleshooting tips:
error:
error: *-> Are "grunt" and related grunt task modules installed locally? Run `npm install` if you're not sure.
error:
error: *-> You might have a malformed LESS, SASS, CoffeeScript file, etc.
error:
error: *-> Or maybe you don't have permissions to access the `.tmp` directory?
error: e.g., `/var/app/current/.tmp` ?
error:
error: If you think this might be the case, try running:
error: sudo chown -R 497 /var/app/current/.tmp
The same code runs fine on my local development laptop and on Heroku but not on ElasticBeanstalk. Why is it unable to find the bootstrap files? This being a PaaS, I can't even run the recommended sudo chown command that the log recommended. Also to be clear, I have the following command in my package.json file:
"scripts": {
"postinstall": "bower install; grunt build",
"debug": "node debug app.js",
"start": "node app.js"
}
I have instructed the script to run bower install after the NPM packages are installed in the machine. None of the images in my /assets folder seem to load either. Not sure what's going on. Please help.

install Oracle11gr2 on Windows 2008 R2 failed to install "Oracle Net Configuration Assistant”

log file shows:
INFO: Starting 'Oracle Net Configuration Assistant'
INFO:
INFO: Parsing command line arguments:
INFO: Parameter "orahome" = C:\app\Administrator\product\11.2.0\dbhome_1
INFO: Parameter "orahnam" = OraDb11g_home1
INFO: Parameter "instype" = typical
INFO: Parameter "inscomp" = client,oraclenet,javavm,server,ano
INFO: Parameter "insprtcl" = tcp,nmp
INFO: Parameter "cfg" = local
INFO: Parameter "authadp" = NO_VALUE
INFO: Parameter "responsefile" = C:\app\Administrator\product\11.2.0\dbhome_1\network\install\netca_typ.rsp
INFO: Parameter "silent" = true
INFO: Done parsing command line arguments.
INFO: Oracle Net Services Configuration:
INFO: #
INFO: # An unexpected error has been detected by HotSpot Virtual Machine:
INFO: #
INFO: # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000006c7eb3f, pid=3972, tid=3440
INFO: #
INFO: # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_17-b04 mixed mode)
INFO: # Problematic frame:
INFO: # C [oranl11.dll+0x3eb3f]
INFO: #
INFO: # An error report file with more information is saved as hs_err_pid3972.log
INFO: #
INFO: # If you would like to submit a bug report, please visit:
INFO: # http://java.sun.com/webapps/bugreport/crash.jsp
INFO: #
INFO:
WARNING:
INFO: Completed Plugin named: Oracle Net Configuration Assistant
You're getting a Java JVM crash. That's a very old JVM you're using, though, so you should upgrade to the more recent stable version (1.6.0_25 at time of writing) and try again.

Resources