Try throwing https://visl.sdu.dk/cg3/chunked/streamcmds.html#cmd-flush at
it. A line of only:
<STREAMCMD:FLUSH>
-- Tino Didriksen
On Monday, 25 March 2019 18:41:19 UTC+1, Robert Reynolds wrote:
>
> Hey all!
>
> This might be more of a python question than a vislcg3 question, but I
> couldn't find an answer on Google.
>
> I'm using the following to disambiguate a custom Text object in python:
>
> ```python
> p = Popen(['vislcg3', '-g', gram_path],
> stdin=PIPE,
> stdout=PIPE,
> universal_newlines=True)
> output = p.communicate(input=self.CG_str())[0]
> ```
>
> ...where self.CG_str() gives a cg3-style stream representation, ending
> with a newline ('\n').
>
> With the current approach, I get everything except the last token and its
> readings. Any ideas how to get the last token to flush?
>
--
You received this message because you are subscribed to the Google Groups
"Constraint Grammar" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/constraint-grammar.
For more options, visit https://groups.google.com/d/optout.