You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use only Accentor.py (to get only accents, but not transcriptions). I've created a simple code that is reading a file line by line (single word in each line), putting on stress for each word read, adding words to a list and then writing them to an output file. After a 1000 of words I'm getting this error message:
Traceback (most recent call last):
File "/home/user_name/__nsu-ai/russian_g2p/Accentor.py", line 293, in do_accents
res = self.__do_accents(prepared_phrase, morphotags_of_phrase)
File "/home/user_name/__nsu-ai/russian_g2p/Accentor.py", line 524, in __do_accents
cur_accented_wordforms = sorted(self.get_correct_omograph_wiki(root_text, cur_word, morphotags_list[0]))
TypeError: 'NoneType' object is not subscriptable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "accentize_russian_g2p.py", line 10, in
accented_word = accent.do_accents([[word.strip()]])
File "/home/user_name/__nsu-ai/russian_g2p/Accentor.py", line 308, in do_accents
raise ValueError(err_msg)
ValueError: 'NoneType' object is not subscriptable
I thought it's connected to a specific word, so I deleted it and tried again, but it always stops after 1000 stresses done at 1001st stress to put. Is there any limit set up for Accentor?
The text was updated successfully, but these errors were encountered:
I'm trying to use only Accentor.py (to get only accents, but not transcriptions). I've created a simple code that is reading a file line by line (single word in each line), putting on stress for each word read, adding words to a list and then writing them to an output file. After a 1000 of words I'm getting this error message:
Traceback (most recent call last):
File "/home/user_name/__nsu-ai/russian_g2p/Accentor.py", line 293, in do_accents
res = self.__do_accents(prepared_phrase, morphotags_of_phrase)
File "/home/user_name/__nsu-ai/russian_g2p/Accentor.py", line 524, in __do_accents
cur_accented_wordforms = sorted(self.get_correct_omograph_wiki(root_text, cur_word, morphotags_list[0]))
TypeError: 'NoneType' object is not subscriptable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "accentize_russian_g2p.py", line 10, in
accented_word = accent.do_accents([[word.strip()]])
File "/home/user_name/__nsu-ai/russian_g2p/Accentor.py", line 308, in do_accents
raise ValueError(err_msg)
ValueError: 'NoneType' object is not subscriptable
I thought it's connected to a specific word, so I deleted it and tried again, but it always stops after 1000 stresses done at 1001st stress to put. Is there any limit set up for Accentor?
The text was updated successfully, but these errors were encountered: