public class ConstituentParsingLayerStored extends TextCorpusLayerStoredAbstract implements ConstituentParsingLayer
| Modifier | Constructor and Description |
|---|---|
protected |
ConstituentParsingLayerStored() |
protected |
ConstituentParsingLayerStored(String tagset) |
protected |
ConstituentParsingLayerStored(TextCorpusLayersConnector connector) |
| Modifier and Type | Method and Description |
|---|---|
Constituent |
addChild(Constituent parent,
Constituent child)
Adds constituent child to a parent constituent.
|
ConstituentParse |
addParse(Constituent root)
Creates sentence parse with the given constituent root.
|
Constituent |
addSecondaryEdgeChild(Constituent parent,
Constituent child,
String edgeLabel)
Adds secondary edge child to a constituent.
|
Constituent |
createConstituent(String category)
Creates non-terminal constituent with the given category, children should
be added later
|
Constituent |
createConstituent(String category,
List<Constituent> children)
Creates non-terminal constituent with the given category and constituent
children.
|
Constituent |
createConstituent(String category,
List<Constituent> children,
String id) |
Constituent |
createConstituent(String category,
String edge) |
Constituent |
createConstituent(String category,
String edge,
List<Constituent> children) |
Constituent |
createConstituent(String category,
String edge,
List<Constituent> children,
String id) |
Constituent |
createConstituent(String category,
String edge,
String id) |
Constituent |
createTerminalConstituent(String category,
List<Token> tokens)
Creates terminal constituent with the given category and tokens
|
Constituent |
createTerminalConstituent(String category,
List<Token> tokens,
String id) |
Constituent |
createTerminalConstituent(String category,
String edge,
List<Token> tokens) |
Constituent |
createTerminalConstituent(String category,
String edge,
List<Token> tokens,
String id) |
Constituent |
createTerminalConstituent(String category,
String edge,
Token token) |
Constituent |
createTerminalConstituent(String category,
String edge,
Token token,
String id) |
Constituent |
createTerminalConstituent(String category,
Token token)
Creates terminal constituent with the given category and token
|
Constituent |
getConstituent(ConstituentReference cref)
Gets the Constituent reference by this ConstituentReference object
|
ConstituentParse |
getParse(int index) |
Constituent |
getParseRoot(int index) |
String |
getTagset() |
Token[] |
getTokens(Constituent constituent) |
Token[] |
getTokens(ConstituentParse parse) |
boolean |
isEmpty() |
protected void |
setLayersConnector(TextCorpusLayersConnector connector)
Should not be used directly by users.
|
int |
size() |
String |
toString() |
public static final String XML_NAME
protected ConstituentParsingLayerStored()
protected ConstituentParsingLayerStored(String tagset)
protected ConstituentParsingLayerStored(TextCorpusLayersConnector connector)
protected void setLayersConnector(TextCorpusLayersConnector connector)
TextCorpusLayerStoredAbstractsetLayersConnector in class TextCorpusLayerStoredAbstractpublic boolean isEmpty()
isEmpty in interface TextCorpusLayerpublic int size()
size in interface TextCorpusLayerpublic String getTagset()
getTagset in interface ConstituentParsingLayerpublic ConstituentParse getParse(int index)
getParse in interface ConstituentParsingLayerpublic Constituent getParseRoot(int index)
getParseRoot in interface ConstituentParsingLayerpublic Token[] getTokens(ConstituentParse parse)
getTokens in interface ConstituentParsingLayerpublic Token[] getTokens(Constituent constituent)
getTokens in interface ConstituentParsingLayerpublic Constituent getConstituent(ConstituentReference cref)
ConstituentParsingLayergetConstituent in interface ConstituentParsingLayerpublic Constituent createConstituent(String category, List<Constituent> children)
ConstituentParsingLayercreateConstituent in interface ConstituentParsingLayerpublic Constituent createConstituent(String category, String edge, List<Constituent> children)
createConstituent in interface ConstituentParsingLayerpublic Constituent createConstituent(String category, List<Constituent> children, String id)
createConstituent in interface ConstituentParsingLayerpublic Constituent createConstituent(String category)
ConstituentParsingLayercreateConstituent in interface ConstituentParsingLayerpublic Constituent createConstituent(String category, String edge)
createConstituent in interface ConstituentParsingLayerpublic Constituent createConstituent(String category, String edge, String id)
createConstituent in interface ConstituentParsingLayerpublic Constituent createConstituent(String category, String edge, List<Constituent> children, String id)
createConstituent in interface ConstituentParsingLayerpublic Constituent addChild(Constituent parent, Constituent child)
ConstituentParsingLayeraddChild in interface ConstituentParsingLayerpublic Constituent addSecondaryEdgeChild(Constituent parent, Constituent child, String edgeLabel)
ConstituentParsingLayeraddSecondaryEdgeChild in interface ConstituentParsingLayerpublic Constituent createTerminalConstituent(String category, List<Token> tokens)
ConstituentParsingLayercreateTerminalConstituent in interface ConstituentParsingLayerpublic Constituent createTerminalConstituent(String category, String edge, List<Token> tokens)
createTerminalConstituent in interface ConstituentParsingLayerpublic Constituent createTerminalConstituent(String category, List<Token> tokens, String id)
createTerminalConstituent in interface ConstituentParsingLayerpublic Constituent createTerminalConstituent(String category, Token token)
ConstituentParsingLayercreateTerminalConstituent in interface ConstituentParsingLayerpublic Constituent createTerminalConstituent(String category, String edge, Token token)
createTerminalConstituent in interface ConstituentParsingLayerpublic Constituent createTerminalConstituent(String category, String edge, Token token, String id)
createTerminalConstituent in interface ConstituentParsingLayerpublic Constituent createTerminalConstituent(String category, String edge, List<Token> tokens, String id)
createTerminalConstituent in interface ConstituentParsingLayerpublic ConstituentParse addParse(Constituent root)
ConstituentParsingLayeraddParse in interface ConstituentParsingLayerCopyright © 2013-2019 Department of Linguistics, Tübingen University. All Rights Reserved.