|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.clarin.weblicht.wlfxb.tc.xb.TextCorpusLayerStoredAbstract
eu.clarin.weblicht.wlfxb.tc.xb.ConstituentParsingLayerStored
public class ConstituentParsingLayerStored
| Field Summary | |
|---|---|
static String |
XML_NAME
|
| Constructor Summary | |
|---|---|
protected |
ConstituentParsingLayerStored()
|
protected |
ConstituentParsingLayerStored(String tagset)
|
protected |
ConstituentParsingLayerStored(TextCorpusLayersConnector connector)
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String XML_NAME
| Constructor Detail |
|---|
protected ConstituentParsingLayerStored()
protected ConstituentParsingLayerStored(String tagset)
protected ConstituentParsingLayerStored(TextCorpusLayersConnector connector)
| Method Detail |
|---|
protected void setLayersConnector(TextCorpusLayersConnector connector)
TextCorpusLayerStoredAbstract
setLayersConnector 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)
ConstituentParsingLayer
getConstituent in interface ConstituentParsingLayer
public Constituent createConstituent(String category,
List<Constituent> children)
ConstituentParsingLayer
createConstituent in interface ConstituentParsingLayer
public Constituent createConstituent(String category,
String edge,
List<Constituent> children)
createConstituent in interface ConstituentParsingLayer
public Constituent createConstituent(String category,
List<Constituent> children,
String id)
createConstituent in interface ConstituentParsingLayerpublic Constituent createConstituent(String category)
ConstituentParsingLayer
createConstituent in interface ConstituentParsingLayer
public Constituent createConstituent(String category,
String edge)
createConstituent in interface ConstituentParsingLayer
public Constituent createConstituent(String category,
String edge,
String id)
createConstituent in interface ConstituentParsingLayer
public Constituent createConstituent(String category,
String edge,
List<Constituent> children,
String id)
createConstituent in interface ConstituentParsingLayer
public Constituent addChild(Constituent parent,
Constituent child)
ConstituentParsingLayer
addChild in interface ConstituentParsingLayer
public Constituent addSecondaryEdgeChild(Constituent parent,
Constituent child,
String edgeLabel)
ConstituentParsingLayer
addSecondaryEdgeChild in interface ConstituentParsingLayer
public Constituent createTerminalConstituent(String category,
List<Token> tokens)
ConstituentParsingLayer
createTerminalConstituent in interface ConstituentParsingLayer
public Constituent createTerminalConstituent(String category,
String edge,
List<Token> tokens)
createTerminalConstituent in interface ConstituentParsingLayer
public Constituent createTerminalConstituent(String category,
List<Token> tokens,
String id)
createTerminalConstituent in interface ConstituentParsingLayer
public Constituent createTerminalConstituent(String category,
Token token)
ConstituentParsingLayer
createTerminalConstituent in interface ConstituentParsingLayer
public Constituent createTerminalConstituent(String category,
String edge,
Token token)
createTerminalConstituent in interface ConstituentParsingLayer
public Constituent createTerminalConstituent(String category,
String edge,
Token token,
String id)
createTerminalConstituent in interface ConstituentParsingLayer
public Constituent createTerminalConstituent(String category,
String edge,
List<Token> tokens,
String id)
createTerminalConstituent in interface ConstituentParsingLayerpublic ConstituentParse addParse(Constituent root)
ConstituentParsingLayer
addParse in interface ConstituentParsingLayerpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||