Add syntax server address

This commit is contained in:
Aleksey Filippov 2022-01-14 17:11:12 +04:00
parent 342d78522b
commit 14f3ba5171
2 changed files with 4 additions and 2 deletions

View File

@ -18,7 +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)
syntax_server = 'http://syntaxnet.athene.tech'
parse_tree = Syntax().run(text, syntax_server)
print(f'Parse tree: {parse_tree}')

View File

@ -1,3 +1,4 @@
class Syntax:
def run(self, text: str) -> str:
def run(self, text: str, server: str) -> str:
return text