Java Reference
In-Depth Information
Span: [7..9) person
Entity: Fred
Using the OpenNLP parser, we get a lot more information about the sentence:
(TOP (S (NP (PRP He)) (VP (VBD was) (NP (NP (DT the) (JJ
last) (NN person)) (SBAR (S (VP (TO to) (VP (VB see)))))))
(. Fred.)))
Consider the following input:
The cow jumped over the moon.
For the preceding sentence, the parser returns this:
(TOP (S (NP (DT The) (NN cow)) (VP (VBD jumped) (PP (IN
over) (NP (DT the) (NN moon))))))
There are two types of parsing:
Dependency : This focuses on the relationship between words
Phrase structure : This deals with phrases and their recursive structure
Dependencies can use labels such as subject, determiner, and prepositions to find relation-
ships. Parsing techniques include shift-reduce, spanning tree, and cascaded chunking. We
are not concerned about these differences here, but will focus on the use and outcome of
various parsers.
Search WWH ::




Custom Search