Open jumper047 opened 1 year ago
Default graph rebuilding process adds phrases, not replaces them. You probably modified something on the way.
Started rebuilding process from scratch and got same results. Also old and new Gr.fst
drastically differs in size:
5969333 Gr.new.fst
24013795 Gr.fst
Commands I executed:
fstsymbols --save_osymbols=words.txt graph/Gr.fst > /dev/null
farcompilestrings --fst_type=compact --symbols=words.txt --keep_symbols text.txt | ngramcount | ngrammake | fstconvert --fst_type=ngram > Gr.new.fst
text.txt contains about 20 lines with some phrases
I'm trying to add improve recognition of the specific phrases (I'm using vosk as recognizer for "smart speaker"). I followed the guide - https://alphacephei.com/vosk/adaptation , generated new
Gr.fst
and it works, and resulting model recognizes only phrases I added. But what if I want to update phrases model can recognize, and not replace it? Is it possible to find phrases which were used to generate originalGr.fst
?