Did you know ... | Search Documentation: |
![]() | Pack logicmoo_nlu -- ext/ace_in_gf/probs/README.md |
Probabilities of the functions in the grammar.
Currently for testing purposes, e.g. use them in random generation:
echo "gr -lang=Words300Ace -cat=S -number=100 -probs=probs/combined.probs | l -treebank -bind" | gf --run Words300.pgf
The lang-flag asks to generate only trees which are linearizable in the given languages, if this flag is omitted then all languages are expected to give linearizations, which can harm the coverage of the output if some languages are only partially implemented. Therefore use a single fully implemented language as a value of this flag.
An even better option is to generate a treebank using only abstract syntax,
and then linearize the treebank (see target gr_Words300_with_abstract
).
echo "read_file -file=test.tb -lines -tree | l -treebank -bind" | gf --run Words300.pgf