public interface ConstituentParsingLayer extends TextCorpusLayer
| 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) |
isEmpty, sizeString getTagset()
ConstituentParse getParse(int index)
Constituent getParseRoot(int index)
Token[] getTokens(ConstituentParse parse)
Token[] getTokens(Constituent constituent)
Constituent createConstituent(String category, List<Constituent> children)
Constituent createConstituent(String category, String edge, List<Constituent> children)
Constituent createConstituent(String category, List<Constituent> children, String id)
Constituent createConstituent(String category, String edge, List<Constituent> children, String id)
Constituent createConstituent(String category)
Constituent createConstituent(String category, String edge)
Constituent createConstituent(String category, String edge, String id)
Constituent addChild(Constituent parent, Constituent child)
Constituent addSecondaryEdgeChild(Constituent parent, Constituent child, String edgeLabel)
Constituent getConstituent(ConstituentReference cref)
Constituent createTerminalConstituent(String category, List<Token> tokens)
Constituent createTerminalConstituent(String category, String edge, List<Token> tokens)
Constituent createTerminalConstituent(String category, List<Token> tokens, String id)
Constituent createTerminalConstituent(String category, String edge, List<Token> tokens, String id)
Constituent createTerminalConstituent(String category, Token token)
Constituent createTerminalConstituent(String category, String edge, Token token)
Constituent createTerminalConstituent(String category, String edge, Token token, String id)
ConstituentParse addParse(Constituent root)
Copyright © 2013-2019 Department of Linguistics, Tübingen University. All Rights Reserved.