Add initial version of syntax analyser
This commit is contained in:
parent
608f9c264c
commit
342d78522b
3
main.py
3
main.py
@ -4,6 +4,7 @@ import sys
|
||||
import warnings
|
||||
|
||||
from speech import Speech
|
||||
from syntax import Syntax
|
||||
|
||||
if not sys.warnoptions:
|
||||
warnings.simplefilter("ignore")
|
||||
@ -17,6 +18,8 @@ def _main():
|
||||
speech_server = 'http://vosk.athene.tech'
|
||||
text = Speech().run(wav_file, speech_server)
|
||||
print(f'Text: {text}')
|
||||
parse_tree = Syntax().run(text)
|
||||
print(f'Parse tree: {parse_tree}')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Loading…
Reference in New Issue
Block a user