| Package | Description |
|---|---|
| edu.nyu.jet.chunk | |
| edu.nyu.jet.format | |
| edu.nyu.jet.parser |
The Parser package includes several types of parsers (top-down, bottom-up,
and chart).
|
| Modifier and Type | Method and Description |
|---|---|
void |
ChunkDependencyAnalyzer.analyzeChunkDependency(Document doc,
ParseTreeNode tree) |
void |
TreeBasedChunker.chunk(Document doc,
ParseTreeNode tree) |
| Modifier and Type | Method and Description |
|---|---|
ParseTreeNode |
Treebank.getParseTree(int i) |
| Modifier and Type | Method and Description |
|---|---|
List<ParseTreeNode> |
Treebank.getParseTreeList() |
List<ParseTreeNode> |
PTBReader.loadParseTrees(File file) |
List<ParseTreeNode> |
PTBReader.loadParseTrees(Reader in)
Loads parse tree corpus from Penn Treebank corpus.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PTBReader.addAnnotations(ParseTreeNode tree,
Document doc,
Span span,
boolean jetCategories)
Adds constit annotations to an existing Document
doc to
represent the parse tree structure tree. |
void |
PTBWriter.save(ParseTreeNode tree,
Writer out) |
| Modifier and Type | Method and Description |
|---|---|
void |
PTBReader.addAnnotations(List<ParseTreeNode> trees,
Document doc,
String targetAnnotation,
Span span,
boolean jetCategories)
Adds constit annotations to an existing Document
doc to
represent the parse tree structure of a set of trees trees. |
void |
PTBReader.addAnnotations(List<ParseTreeNode> trees,
List<Integer> offsets,
Document doc,
String targetAnnotation,
Span span,
boolean jetCategories)
Adds constit annotations to an existing Document
doc to
represent the parse tree structure of a set of trees trees. |
| Constructor and Description |
|---|
Treebank(Document doc,
List<ParseTreeNode> parseTreeList) |
| Modifier and Type | Field and Description |
|---|---|
ParseTreeNode[] |
Edge.children
for non-leaf nodes, the children of this node.
|
| Modifier and Type | Method and Description |
|---|---|
ParseTreeNode[] |
Edge.getChildren()
Returns children of this edge.
|
static ParseTreeNode |
StatParser.parse(Document doc,
Span span)
parse the sentence in 'span' of Document 'doc'.
|
| Modifier and Type | Method and Description |
|---|---|
void |
HeadRule.apply(ParseTreeNode tree)
Applys head rule and sets head index each node in the parse tree.
|
int |
HeadRule.getHead(ParseTreeNode node)
Returns head element's index in node's children.
|
static Annotation |
ParseTreeNode.makeParseAnnotations(Document doc,
ParseTreeNode n)
given a parse tree in the form of nested ParseTreeNodes, adds an
Annotation of type 'constit' to Document 'doc' for each non-terminal node
in the tree.
|
void |
DependencyAnalyzer.resolveTerminalDependency(ParseTreeNode tree)
Resolves dependency for each terminal nodes.
|
static void |
ParseTreeNode.terminalToToken(Document doc,
ParseTreeNode node) |
| Constructor and Description |
|---|
ActiveEdge(Object category,
Vector rhs,
ParseTreeNode[] children,
int start,
int end) |
ParseTreeModel(ParseTreeNode root) |
ParseTreeNode(Object category,
ParseTreeNode[] children,
int start,
int end,
Annotation ann,
String word)
create a ParseTreeNode corresponding to a leaf of the parse tree.
|
ParseTreeNode(Object category,
ParseTreeNode[] children,
int start,
int end,
Annotation ann,
String word,
String function)
create a ParseTreeNode corresponding to a leaf of the parse tree.
|
ParseTreeNode(Object category,
ParseTreeNode[] children,
int start,
int end,
int head)
create a ParseTreeNode corresponding to an internal node of the parse
tree.
|
ParseTreeNode(Object category,
ParseTreeNode[] children,
int start,
int end,
int head,
String function)
create a ParseTreeNode corresponding to an internal node of the parse
tree.
|
ParseTreeView(String title,
ParseTreeNode root)
create (and make visible) a JFrame containing a display of the
parse tree with root root.
|
Copyright © 2016 New York University. All rights reserved.