Package eu.clarin.weblicht.wlfxb.tc.xb
Class NamedEntitiesLayerStored
- java.lang.Object
-
- eu.clarin.weblicht.wlfxb.tc.xb.TextCorpusLayerStoredAbstract
-
- eu.clarin.weblicht.wlfxb.tc.xb.NamedEntitiesLayerStored
-
- All Implemented Interfaces:
NamedEntitiesLayer,TextCorpusLayer
public class NamedEntitiesLayerStored extends TextCorpusLayerStoredAbstract implements NamedEntitiesLayer
- Author:
- Yana Panchenko
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNamedEntitiesLayerStored()protectedNamedEntitiesLayerStored(TextCorpusLayersConnector connector)protectedNamedEntitiesLayerStored(String type)
-
Method Summary
Modifier and Type Method Description NamedEntityaddEntity(String entityType, Token tagToken)NamedEntityaddEntity(String entityType, List<Token> entityTokens)List<NamedEntity>getEntities(Token token)NamedEntitygetEntity(int index)NamedEntitygetEntity(Token token)Set<String>getFoundTypes()Token[]getTokens(NamedEntity entity)StringgetType()booleanisEmpty()protected voidsetLayersConnector(TextCorpusLayersConnector connector)Should not be used directly by users.intsize()StringtoString()
-
-
-
Field Detail
-
XML_NAME
public static final String XML_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NamedEntitiesLayerStored
protected NamedEntitiesLayerStored()
-
NamedEntitiesLayerStored
protected NamedEntitiesLayerStored(String type)
-
NamedEntitiesLayerStored
protected NamedEntitiesLayerStored(TextCorpusLayersConnector connector)
-
-
Method Detail
-
setLayersConnector
protected void setLayersConnector(TextCorpusLayersConnector connector)
Description copied from class:TextCorpusLayerStoredAbstractShould not be used directly by users. Should be extended by all implementations of TextCorpusLayers, as they might depend on other layers and therefore be able to get referenced/referencing information.- Specified by:
setLayersConnectorin classTextCorpusLayerStoredAbstract
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceTextCorpusLayer
-
size
public int size()
- Specified by:
sizein interfaceTextCorpusLayer
-
getType
public String getType()
- Specified by:
getTypein interfaceNamedEntitiesLayer
-
getFoundTypes
public Set<String> getFoundTypes()
- Specified by:
getFoundTypesin interfaceNamedEntitiesLayer
-
getEntity
public NamedEntity getEntity(int index)
- Specified by:
getEntityin interfaceNamedEntitiesLayer
-
getEntity
public NamedEntity getEntity(Token token)
- Specified by:
getEntityin interfaceNamedEntitiesLayer
-
getEntities
public List<NamedEntity> getEntities(Token token)
- Specified by:
getEntitiesin interfaceNamedEntitiesLayer
-
getTokens
public Token[] getTokens(NamedEntity entity)
- Specified by:
getTokensin interfaceNamedEntitiesLayer
-
addEntity
public NamedEntity addEntity(String entityType, Token tagToken)
- Specified by:
addEntityin interfaceNamedEntitiesLayer
-
addEntity
public NamedEntity addEntity(String entityType, List<Token> entityTokens)
- Specified by:
addEntityin interfaceNamedEntitiesLayer
-
-