Skip to content
Snippets Groups Projects
Unverified Commit 8803ebe1 authored by Sebastian Höffner's avatar Sebastian Höffner
Browse files

Adding the space for wccg's prompt.

parent a912b210
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ class WCCGProcess: ...@@ -21,7 +21,7 @@ class WCCGProcess:
self._new_repl() self._new_repl()
def _new_repl(self): def _new_repl(self):
self.repl = REPLWrapper(f'wccg -prompt {PEXPECT_PROMPT} -showsem -showall {os.environ.get("GRAMMAR_DIR", "/grammar")}', PEXPECT_PROMPT, None) self.repl = REPLWrapper(f'wccg -prompt {PEXPECT_PROMPT} -showsem -showall {os.environ.get("GRAMMAR_DIR", "/grammar")}', PEXPECT_PROMPT + ' ', None)
def parse(self, sentence): def parse(self, sentence):
"""Parse a sentence by passing it to the wccg process and read the results. """Parse a sentence by passing it to the wccg process and read the results.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment