Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_pywrapfst.FstIOError: Read failed #2

Open
aj7tesh opened this issue Jun 21, 2021 · 2 comments
Open

_pywrapfst.FstIOError: Read failed #2

aj7tesh opened this issue Jun 21, 2021 · 2 comments

Comments

@aj7tesh
Copy link

aj7tesh commented Jun 21, 2021

I am trying to run server.py on my local after following all the installation and setup process as mentioned in documentation. But it looks like some where is setup is not done properly which I am unable to figure out.

Traceback (most recent call last):
File "server.py", line 3, in
from speech_recognition_service import SpeechRecognizer
File "/home/ajitesh/Desktop/workspace/asr/vakyans-server/speech-recognition-open-api/speech_recognition_service.py", line 3, in
from model_service import ModelService
File "/home/ajitesh/Desktop/workspace/asr/vakyans-server/speech-recognition-open-api/model_service.py", line 3, in
from inverse_text_normalization.run_predict import inverse_normalize_text
File "/home/ajitesh/anaconda3/envs/server-vakyansh/lib/python3.8/site-packages/inverse_text_normalization/run_predict.py", line 1, in
from inverse_text_normalization.hi.run_predict import inverse_normalize_text as hi_itn
File "/home/ajitesh/anaconda3/envs/server-vakyansh/lib/python3.8/site-packages/inverse_text_normalization/hi/run_predict.py", line 18, in
from inverse_text_normalization.hi.inverse_normalize import INVERSE_NORMALIZERS
File "/home/ajitesh/anaconda3/envs/server-vakyansh/lib/python3.8/site-packages/inverse_text_normalization/hi/inverse_normalize.py", line 26, in
from inverse_text_normalization.hi.taggers.tokenize_and_classify_final import ClassifyFinalFst
File "/home/ajitesh/anaconda3/envs/server-vakyansh/lib/python3.8/site-packages/inverse_text_normalization/hi/taggers/tokenize_and_classify_final.py", line 20, in
from inverse_text_normalization.hi.graph_utils import GraphFst, delete_extra_space, delete_space
File "/home/ajitesh/anaconda3/envs/server-vakyansh/lib/python3.8/site-packages/inverse_text_normalization/hi/graph_utils.py", line 53, in
suppletive = pynini.string_file(get_abs_path(data_path + 'suppletive.tsv'))
File "extensions/_pynini.pyx", line 1042, in _pynini.string_file
File "extensions/_pynini.pyx", line 1118, in _pynini.string_file
_pywrapfst.FstIOError: Read failed

@akashicMarga
Copy link

install indic-punct from here https://github.com/Open-Speech-EkStep/indic-punct . it solved the issue

@aj7tesh
Copy link
Author

aj7tesh commented Jul 6, 2021

@singhaki I tried above explicitylt. Still the same error.
I got the reason. Some how by no means it is able to fetch the latest code in indic-punct repo. Its there in model_bootstap.sh but that also is fetching 0.0.2 version even after adding latest commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants