Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What output formats can I get with the -outputFormat and -outputFormatOptions options?

formats Options output
0
Posted

What output formats can I get with the -outputFormat and -outputFormatOptions options?

0

You can give the options -outputFormat typedDependencies or -outputFormat typedDependenciesCollapsed to get typed dependencies (or grammatical relations) output (for English and Chinese only, currently). You can print out lexicalized trees (head words and tags at each phrasal node with the -outputFormatOptions lexicalize option. You can see all the other options by looking in the Javadoc of the TreePrint class. • Can I have the parser run as a filter (that is, parse stuff typed in)? Yes, you use a filename of a single dash/minus character: -. E.g., java -cp stanford-parser.jar edu.stanford.nlp.parser.lexparser.LexicalizedParser englishPCFG.ser.gz – For interactive use, you may find it convenient to turn off the stderr output. For example, in bash you could use the command: java -cp stanford-parser.jar edu.stanford.nlp.parser.lexparser.LexicalizedParser englishPCFG.ser.gz – 2> /dev/null • Can you explain the different parsers? How can the PCFG parser produce typed dependency parses? Why

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123