This is an automated email from the ASF dual-hosted git repository.
jzemerick pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/opennlp.git
The following commit(s) were added to refs/heads/master by this push:
new 2afbc50 Changed the example for the parsing section in docs (#360)
2afbc50 is described below
commit 2afbc508bc3ca99eceb584be697238340caf46b4
Author: Ruben Dorado <[email protected]>
AuthorDate: Tue Jan 21 17:32:39 2020 -0500
Changed the example for the parsing section in docs (#360)
---
opennlp-docs/src/docbkx/parser.xml | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/opennlp-docs/src/docbkx/parser.xml
b/opennlp-docs/src/docbkx/parser.xml
index 9396677..4111ece 100644
--- a/opennlp-docs/src/docbkx/parser.xml
+++ b/opennlp-docs/src/docbkx/parser.xml
@@ -45,13 +45,12 @@ $ opennlp Parser en-parser-chunking.bin]]>
Copy this sample sentence to the console.
<screen>
<![CDATA[
-The quick brown fox jumps over the lazy dog .]]>
+The cellphone was broken in two days .]]>
</screen>
The parser should now print the following to the console.
<screen>
<![CDATA[
-(TOP (NP (NP (DT The) (JJ quick) (JJ brown) (NN fox) (NNS jumps)) (PP (IN
over) (NP (DT the)
- (JJ lazy) (NN dog))) (. .)))]]>
+(TOP (S (NP (DT The) (NN cellphone)) (VP (VBD was) (VP (VBN broken) (PP (IN
in) (NP (CD two) (NNS days))))) (. .)))]]>
</screen>
With the following command the input can be read from a file
and be written to an output file.
<screen>