Skip to content

Commit

Permalink
Add test for ITN
Browse files Browse the repository at this point in the history
  • Loading branch information
nshmyrev committed Mar 29, 2024
1 parent 2426225 commit 7da70c6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions python/example/test_itn.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env python3

import wave
import sys

from vosk import Processor

proc = Processor("ru_itn_tagger.fst", "ru_itn_verbalizer.fst")
print (proc.process("у нас десять яблок"))
print (proc.process("у нас десять яблок и десять миллилитров воды точка"))
print (proc.process("мы пришли в восемь часов пять минут"))

0 comments on commit 7da70c6

Please sign in to comment.