Package eu.clarin.weblicht.wlfxb.tc.xb
Class TextCorpusStored
- java.lang.Object
-
- eu.clarin.weblicht.wlfxb.tc.xb.TextCorpusStored
-
- All Implemented Interfaces:
TextCorpus
- Direct Known Subclasses:
TextCorpusStreamed,TextCorpusStreamedWithReplaceableLayers
public class TextCorpusStored extends Object implements TextCorpus
- Author:
- Yana Panchenko
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringlangprotected TextCorpusLayerStoredAbstract[]layersInOrderstatic StringXML_NAMEstatic StringXML_NAMESPACE
-
Constructor Summary
Constructors Constructor Description TextCorpusStored(String language)
-
Method Summary
Modifier and Type Method Description protected voidafterUnmarshal(Unmarshaller u, Object parent)static TextCorpusStoredcompose(String lang, TextCorpusLayerStoredAbstract... layers)Composes the layers into one document.protected voidconnectLayers()LexicalSemanticsLayercreateAntonymyLayer()Creates empty antonymy layer in this TextCorpus.ChunksLayercreateChunksLayer(String entitiesType)Creates emptyChunksLayerwith the given tagset for named entity types in this TextCorpus.ConstituentParsingLayercreateConstituentParsingLayer(String tagset)Creates emptyConstituentParsingLayerwith the given tagset in this TextCorpus.DependencyParsingLayercreateDependencyParsingLayer(boolean multipleGovernorsPossible, boolean emptyTokensPossible)Creates emptyDependencyParsingLayerin this TextCorpus.DependencyParsingLayercreateDependencyParsingLayer(String tagset, boolean multipleGovernorsPossible, boolean emptyTokensPossible)Creates emptyDependencyParsingLayerwith the given tagset in this TextCorpus.DiscourseConnectivesLayercreateDiscourseConnectivesLayer()Creates emptyDiscourseConnectivesLayerin this TextCorpus.DiscourseConnectivesLayercreateDiscourseConnectivesLayer(String typesTagset)Creates emptyDiscourseConnectivesLayerin this TextCorpus.GeoLayercreateGeoLayer(String source, GeoLongLatFormat coordFormat)Creates emptyGeoLayerin this TextCorpus.GeoLayercreateGeoLayer(String source, GeoLongLatFormat coordFormat, GeoCapitalFormat capitalFormat)GeoLayercreateGeoLayer(String source, GeoLongLatFormat coordFormat, GeoContinentFormat continentFormat)GeoLayercreateGeoLayer(String source, GeoLongLatFormat coordFormat, GeoContinentFormat continentFormat, GeoCapitalFormat capitalFormat)GeoLayercreateGeoLayer(String source, GeoLongLatFormat coordFormat, GeoContinentFormat continentFormat, GeoCountryFormat countryFormat)GeoLayercreateGeoLayer(String source, GeoLongLatFormat coordFormat, GeoContinentFormat continentFormat, GeoCountryFormat countryFormat, GeoCapitalFormat capitalFormat)Creates emptyGeoLayerin this TextCorpus.GeoLayercreateGeoLayer(String source, GeoLongLatFormat coordFormat, GeoCountryFormat countryFormat)GeoLayercreateGeoLayer(String source, GeoLongLatFormat coordFormat, GeoCountryFormat countryFormat, GeoCapitalFormat capitalFormat)LexicalSemanticsLayercreateHyperonymyLayer()Creates empty hyperonymy layer in this TextCorpus.LexicalSemanticsLayercreateHyponymyLayer()Creates empty hyponymy layer in this TextCorpus.LemmasLayercreateLemmasLayer()Creates emptyLemmasLayerin this TextCorpus.MatchesLayercreateMatchesLayer(String queryLanguage, String queryString)Creates empty MatchesLayer layers of this TextCorpus, ready to be filled in with the corpus match annotations.MorphologyLayercreateMorphologyLayer()Creates emptyMorphologyLayerin this TextCorpus.MorphologyLayercreateMorphologyLayer(boolean hasSegmentation)Creates emptyMorphologyLayerin this TextCorpus.MorphologyLayercreateMorphologyLayer(boolean hasSegmentation, boolean hasCharOffsets)Creates emptyMorphologyLayerin this TextCorpus.MorphologyLayercreateMorphologyLayer(String tagset)Creates emptyMorphologyLayerin this TextCorpus.MorphologyLayercreateMorphologyLayer(String tagset, boolean hasSegmentation)Creates emptyMorphologyLayerin this TextCorpus.MorphologyLayercreateMorphologyLayer(String tagset, boolean hasSegmentation, boolean hasCharOffsets)Creates emptyMorphologyLayerin this TextCorpus.NamedEntitiesLayercreateNamedEntitiesLayer(String entitiesType)Creates emptyNamedEntitiesLayerwith the given tagset for named entity types in this TextCorpus.OrthographyLayercreateOrthographyLayer()Creates emptyOrthographyLayerin this TextCorpus.PhoneticsLayercreatePhotenicsLayer(String alphabet)Creates emptyPhoneticsLayerwith the given alphabet for phonetic transcriptions in this TextCorpus.PosTagsLayercreatePosTagsLayer(String tagset)Creates emptyPosTagsLayerwith the given tagset in this TextCorpus.ReferencesLayercreateReferencesLayer(String typetagset, String reltagset, String externalReferencesSource)Creates empty references layers of this TextCorpus, ready to be filled in with the references data.RelationsLayercreateRelationsLayer(String type)SentencesLayercreateSentencesLayer()Creates emptySentencesLayerin this TextCorpus.SentencesLayercreateSentencesLayer(boolean hasCharOffsets)Creates emptySentencesLayerin this TextCorpus.LexicalSemanticsLayercreateSynonymyLayer()Creates empty synonymy layer in this TextCorpus.TextLayercreateTextLayer()Creates emptyTextLayerin this TextCorpus.TextSourceLayercreateTextSourceLayer()Creates emptyTextSourceLayerin this TextCorpus.TextStructureLayercreateTextStructureLayer()Creates emptyTextStructureLayerin this TextCorpus.TokensLayercreateTokensLayer()Creates emptyTokensLayerin this TextCorpus.TokensLayercreateTokensLayer(boolean hasCharOffsets)Creates emptyTokensLayerin this TextCorpus.TopologicalFieldsLayercreateTopologicalFieldsLayer(String tagset)Creates emptyTopologicalFieldsLayerwith the given tagset in this TextCorpus.WordSensesLayercreateWordSensesLayer(String source)Creates emptyWordSensesLayerin this TextCorpus.WordSplittingLayercreateWordSplittingLayer(String type)Creates emptyWordSplittingLayerwith the given type of the splitting in this TextCorpus.AntonymyLayerStoredgetAntonymyLayer()Gets antonymy layer of this TextCorpus.ChunksLayerStoredgetChunksLayer()Gets chunks layer of this TextCorpus.ConstituentParsingLayerStoredgetConstituentParsingLayer()Gets constituent parsing layer of this TextCorpus.DependencyParsingLayerStoredgetDependencyParsingLayer()Gets dependency parsing layer of this TextCorpus.DiscourseConnectivesLayerStoredgetDiscourseConnectivesLayer()Gets discourse connectives layer of this TextCorpus.GeoLayerStoredgetGeoLayer()Gets geo layer of this TextCorpus.HyperonymyLayerStoredgetHyperonymyLayer()Gets hyperonymy layer of this TextCorpus.HyponymyLayerStoredgetHyponymyLayer()Gets hyponymy layer of this TextCorpus.StringgetLanguage()Gets the language of the text/tokens in this TextCorpus.List<TextCorpusLayer>getLayers()Gets all annotation layers of this TextCorpus.LemmasLayerStoredgetLemmasLayer()Gets lemmas layer of this TextCorpus.MatchesLayerStoredgetMatchesLayer()Gets matches layer of this TextCorpus.MorphologyLayerStoredgetMorphologyLayer()Gets morphology layer of this TextCorpus.NamedEntitiesLayerStoredgetNamedEntitiesLayer()Gets named entities layer of this TextCorpus.OrthographyLayerStoredgetOrthographyLayer()Gets orthography layer of this TextCorpus.PhoneticsLayerStoredgetPhoneticsLayer()Gets phonetics layer of this TextCorpus.PosTagsLayerStoredgetPosTagsLayer()Gets part-of-speech layer of this TextCorpus.ReferencesLayerStoredgetReferencesLayer()Gets references layer of this TextCorpus.RelationsLayerStoredgetRelationsLayer()SentencesLayerStoredgetSentencesLayer()Gets sentences layer of this TextCorpus.SynonymyLayerStoredgetSynonymyLayer()Gets synonymy layer of this TextCorpus.TextLayerStoredgetTextLayer()Gets text layer of this TextCorpus.TextSourceLayerStoredgetTextSourceLayer()Gets textSource layer of this TextSource.TextStructureLayerStoredgetTextStructureLayer()Gets text structure layer of this TextCorpus.TokensLayerStoredgetTokensLayer()Gets tokens layer of this TextCorpus.TopologicalFieldsLayerStoredgetTopologicalFieldsLayer()Gets topological fields layer of this TextCorpus.WordSensesLayerStoredgetWordSensesLayer()Gets word senses layer of this TextCorpus.WordSplittingLayerStoredgetWordSplittingLayer()Gets word splitting layer of this TextCorpus.protected voidsetAntonymyLayer(AntonymyLayerStored layer)protected voidsetChunksLayer(ChunksLayerStored layer)protected voidsetConstituentParsingLayer(ConstituentParsingLayerStored layer)protected voidsetDependencyParsingLayer(DependencyParsingLayerStored layer)protected voidsetDiscourseConnectivesLayer(DiscourseConnectivesLayerStored layer)protected voidsetGeoLayer(GeoLayerStored layer)protected voidsetHyperonymyLayer(HyperonymyLayerStored layer)protected voidsetHyponymyLayer(HyponymyLayerStored layer)protected voidsetLemmasLayer(LemmasLayerStored layer)protected voidsetMatchesLayer(MatchesLayerStored layer)protected voidsetMorphologyLayer(MorphologyLayerStored layer)protected voidsetNamedEntitiesLayer(NamedEntitiesLayerStored layer)protected voidsetOrthographyLayer(OrthographyLayerStored layer)protected voidsetPhoneticsLayer(PhoneticsLayerStored layer)protected voidsetPosTagsLayer(PosTagsLayerStored layer)protected voidsetReferencesLayer(ReferencesLayerStored layer)protected voidsetRelationsLayer(RelationsLayerStored layer)protected voidsetSentencesLayer(SentencesLayerStored layer)protected voidsetSynonymyLayer(SynonymyLayerStored layer)protected voidsetTextLayer(TextLayerStored layer)protected voidsetTextSourceLayer(TextSourceLayerStored layer)protected voidsetTextStructureLayer(TextStructureLayerStored layer)protected voidsetTokensLayer(TokensLayerStored layer)protected voidsetTopologicalFieldsLayer(TopologicalFieldsLayerStored layer)protected voidsetWordSensesLayer(WordSensesLayerStored layer)protected voidsetWordSplittingLayer(WordSplittingLayerStored layer)StringtoString()
-
-
-
Field Detail
-
XML_NAME
public static final String XML_NAME
- See Also:
- Constant Field Values
-
XML_NAMESPACE
public static final String XML_NAMESPACE
- See Also:
- Constant Field Values
-
lang
protected String lang
-
layersInOrder
protected TextCorpusLayerStoredAbstract[] layersInOrder
-
-
Constructor Detail
-
TextCorpusStored
public TextCorpusStored(String language)
-
-
Method Detail
-
getLanguage
public String getLanguage()
Description copied from interface:TextCorpusGets the language of the text/tokens in this TextCorpus.- Specified by:
getLanguagein interfaceTextCorpus- Returns:
- language of TextCorpus.
-
getLayers
public List<TextCorpusLayer> getLayers()
Description copied from interface:TextCorpusGets all annotation layers of this TextCorpus.- Specified by:
getLayersin interfaceTextCorpus- Returns:
- annotations layers.
-
createTextLayer
public TextLayer createTextLayer()
Description copied from interface:TextCorpusCreates emptyTextLayerin this TextCorpus.- Specified by:
createTextLayerin interfaceTextCorpus- Returns:
- annotation layer that has been created.
-
createTokensLayer
public TokensLayer createTokensLayer()
Description copied from interface:TextCorpusCreates emptyTokensLayerin this TextCorpus.- Specified by:
createTokensLayerin interfaceTextCorpus- Returns:
- annotation layer that has been created.
-
createTokensLayer
public TokensLayer createTokensLayer(boolean hasCharOffsets)
Description copied from interface:TextCorpusCreates emptyTokensLayerin this TextCorpus.- Specified by:
createTokensLayerin interfaceTextCorpus- Parameters:
hasCharOffsets- true if theTokenobjects in this TokensLayer will contain character offset in text information, false otherwise.- Returns:
- annotation layer that has been created.
-
createLemmasLayer
public LemmasLayer createLemmasLayer()
Description copied from interface:TextCorpusCreates emptyLemmasLayerin this TextCorpus.- Specified by:
createLemmasLayerin interfaceTextCorpus- Returns:
- annotation layer that has been created.
-
createPosTagsLayer
public PosTagsLayer createPosTagsLayer(String tagset)
Description copied from interface:TextCorpusCreates emptyPosTagsLayerwith the given tagset in this TextCorpus.- Specified by:
createPosTagsLayerin interfaceTextCorpus- Parameters:
tagset- of the part-of-speech annotations.- Returns:
- annotation layer that has been created.
-
createTopologicalFieldsLayer
public TopologicalFieldsLayer createTopologicalFieldsLayer(String tagset)
Description copied from interface:TextCorpusCreates emptyTopologicalFieldsLayerwith the given tagset in this TextCorpus.- Specified by:
createTopologicalFieldsLayerin interfaceTextCorpus- Parameters:
tagset- of the topological fields.- Returns:
- annotation layer that has been created.
-
createSentencesLayer
public SentencesLayer createSentencesLayer()
Description copied from interface:TextCorpusCreates emptySentencesLayerin this TextCorpus.- Specified by:
createSentencesLayerin interfaceTextCorpus- Returns:
- annotation layer that has been created.
-
createSentencesLayer
public SentencesLayer createSentencesLayer(boolean hasCharOffsets)
Description copied from interface:TextCorpusCreates emptySentencesLayerin this TextCorpus.- Specified by:
createSentencesLayerin interfaceTextCorpus- Parameters:
hasCharOffsets- true if theSentenceobjects in this SentencesLayer will contain character offset in text information, false otherwise.- Returns:
- annotation layer that has been created.
-
createConstituentParsingLayer
public ConstituentParsingLayer createConstituentParsingLayer(String tagset)
Description copied from interface:TextCorpusCreates emptyConstituentParsingLayerwith the given tagset in this TextCorpus.- Specified by:
createConstituentParsingLayerin interfaceTextCorpus- Parameters:
tagset- of the parsing annotations.- Returns:
- annotation layer that has been created.
-
createDependencyParsingLayer
public DependencyParsingLayer createDependencyParsingLayer(String tagset, boolean multipleGovernorsPossible, boolean emptyTokensPossible)
Description copied from interface:TextCorpusCreates emptyDependencyParsingLayerwith the given tagset in this TextCorpus.- Specified by:
createDependencyParsingLayerin interfaceTextCorpus- Parameters:
tagset- of the functions between dependent and governor.multipleGovernorsPossible- true if a dependent can be governed by more than 1 governor, false otherwise.emptyTokensPossible- true if dependency annotations can contain empty tokens.- Returns:
- annotation layer that has been created.
-
createDependencyParsingLayer
public DependencyParsingLayer createDependencyParsingLayer(boolean multipleGovernorsPossible, boolean emptyTokensPossible)
Description copied from interface:TextCorpusCreates emptyDependencyParsingLayerin this TextCorpus.- Specified by:
createDependencyParsingLayerin interfaceTextCorpus- Parameters:
multipleGovernorsPossible- true if a dependent can be governed by more than 1 governor, false otherwise.emptyTokensPossible- true if dependency annotations can contain empty tokens.- Returns:
- annotation layer that has been created.
-
createMorphologyLayer
public MorphologyLayer createMorphologyLayer()
Description copied from interface:TextCorpusCreates emptyMorphologyLayerin this TextCorpus.- Specified by:
createMorphologyLayerin interfaceTextCorpus- Returns:
- annotation layer that has been created.
-
createMorphologyLayer
public MorphologyLayer createMorphologyLayer(String tagset)
Description copied from interface:TextCorpusCreates emptyMorphologyLayerin this TextCorpus.- Specified by:
createMorphologyLayerin interfaceTextCorpus- Parameters:
tagset- of the morphology annotations contain- Returns:
- annotation layer that has been created.
-
createMorphologyLayer
public MorphologyLayer createMorphologyLayer(boolean hasSegmentation)
Description copied from interface:TextCorpusCreates emptyMorphologyLayerin this TextCorpus.- Specified by:
createMorphologyLayerin interfaceTextCorpus- Parameters:
hasSegmentation- true if morphology annotations contain segmentation analysis.- Returns:
- annotation layer that has been created.
-
createMorphologyLayer
public MorphologyLayer createMorphologyLayer(String tagset, boolean hasSegmentation)
Description copied from interface:TextCorpusCreates emptyMorphologyLayerin this TextCorpus.- Specified by:
createMorphologyLayerin interfaceTextCorpus- Parameters:
tagset- of the morphology annotations containhasSegmentation- true if morphology annotations contain segmentation analysis.- Returns:
- annotation layer that has been created.
-
createMorphologyLayer
public MorphologyLayer createMorphologyLayer(boolean hasSegmentation, boolean hasCharOffsets)
Description copied from interface:TextCorpusCreates emptyMorphologyLayerin this TextCorpus.- Specified by:
createMorphologyLayerin interfaceTextCorpus- Parameters:
hasSegmentation- true if morphology annotations contain segmentation analysis.hasCharOffsets- true if theMorphologyAnalysisobjects in this layer will contain character offset for segmentation within the token information, false otherwise.- Returns:
- annotation layer that has been created.
-
createMorphologyLayer
public MorphologyLayer createMorphologyLayer(String tagset, boolean hasSegmentation, boolean hasCharOffsets)
Description copied from interface:TextCorpusCreates emptyMorphologyLayerin this TextCorpus.- Specified by:
createMorphologyLayerin interfaceTextCorpus- Parameters:
tagset- of the morphology annotations containhasSegmentation- true if morphology annotations contain segmentation analysis.hasCharOffsets- true if theMorphologyAnalysisobjects in this layer will contain character offset for segmentation within the token information, false otherwise.- Returns:
- annotation layer that has been created.
-
createNamedEntitiesLayer
public NamedEntitiesLayer createNamedEntitiesLayer(String entitiesType)
Description copied from interface:TextCorpusCreates emptyNamedEntitiesLayerwith the given tagset for named entity types in this TextCorpus.- Specified by:
createNamedEntitiesLayerin interfaceTextCorpus- Parameters:
entitiesType- tagset of the named entity annotations.- Returns:
- annotation layer that has been created.
-
createChunksLayer
public ChunksLayer createChunksLayer(String entitiesType)
Description copied from interface:TextCorpusCreates emptyChunksLayerwith the given tagset for named entity types in this TextCorpus.- Specified by:
createChunksLayerin interfaceTextCorpus- Parameters:
entitiesType- tagset of the chunk annotations.- Returns:
- annotation layer that has been created.
-
createReferencesLayer
public ReferencesLayer createReferencesLayer(String typetagset, String reltagset, String externalReferencesSource)
Description copied from interface:TextCorpusCreates empty references layers of this TextCorpus, ready to be filled in with the references data.- Specified by:
createReferencesLayerin interfaceTextCorpus- Parameters:
typetagset- tagset for the mention type values of the references (should be null if no types are defined)reltagset- tagset for relation values between the references (should be null if no relations are defined)externalReferencesSource- name of external source (should be null if entities from the external source are not referenced)- Returns:
- annotation layer that has been created.
-
createRelationsLayer
public RelationsLayer createRelationsLayer(String type)
- Specified by:
createRelationsLayerin interfaceTextCorpus
-
createMatchesLayer
public MatchesLayer createMatchesLayer(String queryLanguage, String queryString)
Description copied from interface:TextCorpusCreates empty MatchesLayer layers of this TextCorpus, ready to be filled in with the corpus match annotations.- Specified by:
createMatchesLayerin interfaceTextCorpus- Parameters:
queryLanguage- language of the query used to extract corpus matches from a corpus.queryString- the query used to extract corpus matches from a corpus.- Returns:
- annotation layer that has been created.
-
createWordSplittingLayer
public WordSplittingLayer createWordSplittingLayer(String type)
Description copied from interface:TextCorpusCreates emptyWordSplittingLayerwith the given type of the splitting in this TextCorpus.- Specified by:
createWordSplittingLayerin interfaceTextCorpus- Parameters:
type- of the splitting, e.g. hyphenation.- Returns:
- annotation layer that has been created.
-
createPhotenicsLayer
public PhoneticsLayer createPhotenicsLayer(String alphabet)
Description copied from interface:TextCorpusCreates emptyPhoneticsLayerwith the given alphabet for phonetic transcriptions in this TextCorpus.- Specified by:
createPhotenicsLayerin interfaceTextCorpus- Parameters:
alphabet- of the phonetic transcription annotations.- Returns:
- annotation layer that has been created.
-
createGeoLayer
public GeoLayer createGeoLayer(String source, GeoLongLatFormat coordFormat)
Description copied from interface:TextCorpusCreates emptyGeoLayerin this TextCorpus.- Specified by:
createGeoLayerin interfaceTextCorpus- Parameters:
source- of the geographical coordinates.coordFormat- format of the geographical coordinates.- Returns:
- annotation layer that has been created.
-
createGeoLayer
public GeoLayer createGeoLayer(String source, GeoLongLatFormat coordFormat, GeoContinentFormat continentFormat)
-
createGeoLayer
public GeoLayer createGeoLayer(String source, GeoLongLatFormat coordFormat, GeoContinentFormat continentFormat, GeoCountryFormat countryFormat)
-
createGeoLayer
public GeoLayer createGeoLayer(String source, GeoLongLatFormat coordFormat, GeoContinentFormat continentFormat, GeoCapitalFormat capitalFormat)
-
createGeoLayer
public GeoLayer createGeoLayer(String source, GeoLongLatFormat coordFormat, GeoCountryFormat countryFormat)
-
createGeoLayer
public GeoLayer createGeoLayer(String source, GeoLongLatFormat coordFormat, GeoCountryFormat countryFormat, GeoCapitalFormat capitalFormat)
-
createGeoLayer
public GeoLayer createGeoLayer(String source, GeoLongLatFormat coordFormat, GeoCapitalFormat capitalFormat)
-
createGeoLayer
public GeoLayer createGeoLayer(String source, GeoLongLatFormat coordFormat, GeoContinentFormat continentFormat, GeoCountryFormat countryFormat, GeoCapitalFormat capitalFormat)
Description copied from interface:TextCorpusCreates emptyGeoLayerin this TextCorpus.- Specified by:
createGeoLayerin interfaceTextCorpus- Parameters:
source- of the geographical coordinates.coordFormat- format of the geographical coordinates.continentFormat- format of the continent (in case no continent is specified should be null).countryFormat- format of the country (in case no country is specified should be null).capitalFormat- format of the capital (in case no capital is specified should be null).- Returns:
- annotation layer that has been created.
-
createSynonymyLayer
public LexicalSemanticsLayer createSynonymyLayer()
Description copied from interface:TextCorpusCreates empty synonymy layer in this TextCorpus.- Specified by:
createSynonymyLayerin interfaceTextCorpus- Returns:
- annotation layer that has been created.
-
createAntonymyLayer
public LexicalSemanticsLayer createAntonymyLayer()
Description copied from interface:TextCorpusCreates empty antonymy layer in this TextCorpus.- Specified by:
createAntonymyLayerin interfaceTextCorpus- Returns:
- annotation layer that has been created.
-
createHyponymyLayer
public LexicalSemanticsLayer createHyponymyLayer()
Description copied from interface:TextCorpusCreates empty hyponymy layer in this TextCorpus.- Specified by:
createHyponymyLayerin interfaceTextCorpus- Returns:
- annotation layer that has been created.
-
createHyperonymyLayer
public LexicalSemanticsLayer createHyperonymyLayer()
Description copied from interface:TextCorpusCreates empty hyperonymy layer in this TextCorpus.- Specified by:
createHyperonymyLayerin interfaceTextCorpus- Returns:
- annotation layer that has been created.
-
createOrthographyLayer
public OrthographyLayer createOrthographyLayer()
Description copied from interface:TextCorpusCreates emptyOrthographyLayerin this TextCorpus.- Specified by:
createOrthographyLayerin interfaceTextCorpus- Returns:
- annotation layer that has been created.
-
createTextStructureLayer
public TextStructureLayer createTextStructureLayer()
Description copied from interface:TextCorpusCreates emptyTextStructureLayerin this TextCorpus.- Specified by:
createTextStructureLayerin interfaceTextCorpus- Returns:
- annotation layer that has been created.
-
createDiscourseConnectivesLayer
public DiscourseConnectivesLayer createDiscourseConnectivesLayer()
Description copied from interface:TextCorpusCreates emptyDiscourseConnectivesLayerin this TextCorpus.- Specified by:
createDiscourseConnectivesLayerin interfaceTextCorpus- Returns:
- annotation layer that has been created.
-
createDiscourseConnectivesLayer
public DiscourseConnectivesLayer createDiscourseConnectivesLayer(String typesTagset)
Description copied from interface:TextCorpusCreates emptyDiscourseConnectivesLayerin this TextCorpus.- Specified by:
createDiscourseConnectivesLayerin interfaceTextCorpus- Parameters:
typesTagset- tagset used to label semantic types of the connectives- Returns:
- annotation layer that has been created.
-
createWordSensesLayer
public WordSensesLayer createWordSensesLayer(String source)
Description copied from interface:TextCorpusCreates emptyWordSensesLayerin this TextCorpus.- Specified by:
createWordSensesLayerin interfaceTextCorpus- Parameters:
source- from where the word senses are taken- Returns:
- annotation layer that has been created.
-
createTextSourceLayer
public TextSourceLayer createTextSourceLayer()
Description copied from interface:TextCorpusCreates emptyTextSourceLayerin this TextCorpus.- Specified by:
createTextSourceLayerin interfaceTextCorpus- Returns:
- annotation layer that has been created.
-
setTextLayer
protected void setTextLayer(TextLayerStored layer)
-
getTextLayer
public TextLayerStored getTextLayer()
Description copied from interface:TextCorpusGets text layer of this TextCorpus.- Specified by:
getTextLayerin interfaceTextCorpus- Returns:
- annotation layer containing text.
-
setTokensLayer
protected void setTokensLayer(TokensLayerStored layer)
-
getTokensLayer
public TokensLayerStored getTokensLayer()
Description copied from interface:TextCorpusGets tokens layer of this TextCorpus.- Specified by:
getTokensLayerin interfaceTextCorpus- Returns:
- annotation layer containing tokens.
-
setSentencesLayer
protected void setSentencesLayer(SentencesLayerStored layer)
-
getSentencesLayer
public SentencesLayerStored getSentencesLayer()
Description copied from interface:TextCorpusGets sentences layer of this TextCorpus.- Specified by:
getSentencesLayerin interfaceTextCorpus- Returns:
- layer containing sentence boundary annotations on
Tokenobjects fromTokensLayer.
-
setLemmasLayer
protected void setLemmasLayer(LemmasLayerStored layer)
-
getLemmasLayer
public LemmasLayerStored getLemmasLayer()
Description copied from interface:TextCorpusGets lemmas layer of this TextCorpus.- Specified by:
getLemmasLayerin interfaceTextCorpus- Returns:
- layer containing lemma annotations on
Tokenobjects fromTokensLayer.
-
setPosTagsLayer
protected void setPosTagsLayer(PosTagsLayerStored layer)
-
getPosTagsLayer
public PosTagsLayerStored getPosTagsLayer()
Description copied from interface:TextCorpusGets part-of-speech layer of this TextCorpus.- Specified by:
getPosTagsLayerin interfaceTextCorpus- Returns:
- layer containing part-of-speech annotations on
Tokenobjects fromTokensLayer.
-
setTopologicalFieldsLayer
protected void setTopologicalFieldsLayer(TopologicalFieldsLayerStored layer)
-
getTopologicalFieldsLayer
public TopologicalFieldsLayerStored getTopologicalFieldsLayer()
Description copied from interface:TextCorpusGets topological fields layer of this TextCorpus.- Specified by:
getTopologicalFieldsLayerin interfaceTextCorpus- Returns:
- layer containing topological field annotations on
Tokenobjects fromTokensLayer.
-
setConstituentParsingLayer
protected void setConstituentParsingLayer(ConstituentParsingLayerStored layer)
-
getConstituentParsingLayer
public ConstituentParsingLayerStored getConstituentParsingLayer()
Description copied from interface:TextCorpusGets constituent parsing layer of this TextCorpus.- Specified by:
getConstituentParsingLayerin interfaceTextCorpus- Returns:
- layer containing constituent parsing annotations on
Tokenobjects fromTokensLayer.
-
setDependencyParsingLayer
protected void setDependencyParsingLayer(DependencyParsingLayerStored layer)
-
getDependencyParsingLayer
public DependencyParsingLayerStored getDependencyParsingLayer()
Description copied from interface:TextCorpusGets dependency parsing layer of this TextCorpus.- Specified by:
getDependencyParsingLayerin interfaceTextCorpus- Returns:
- layer containing dependency parsing annotations on
Tokenobjects fromTokensLayer.
-
setMorphologyLayer
protected void setMorphologyLayer(MorphologyLayerStored layer)
-
getMorphologyLayer
public MorphologyLayerStored getMorphologyLayer()
Description copied from interface:TextCorpusGets morphology layer of this TextCorpus.- Specified by:
getMorphologyLayerin interfaceTextCorpus- Returns:
- layer containing morphological analysis annotations on
Tokenobjects fromTokensLayer.
-
setNamedEntitiesLayer
protected void setNamedEntitiesLayer(NamedEntitiesLayerStored layer)
-
getNamedEntitiesLayer
public NamedEntitiesLayerStored getNamedEntitiesLayer()
Description copied from interface:TextCorpusGets named entities layer of this TextCorpus.- Specified by:
getNamedEntitiesLayerin interfaceTextCorpus- Returns:
- layer containing named entity annotations on
Tokenobjects fromTokensLayer.
-
setChunksLayer
protected void setChunksLayer(ChunksLayerStored layer)
-
getChunksLayer
public ChunksLayerStored getChunksLayer()
Description copied from interface:TextCorpusGets chunks layer of this TextCorpus.- Specified by:
getChunksLayerin interfaceTextCorpus- Returns:
- layer containing chunk annotations on
Tokenobjects fromTokensLayer.
-
setReferencesLayer
protected void setReferencesLayer(ReferencesLayerStored layer)
-
getReferencesLayer
public ReferencesLayerStored getReferencesLayer()
Description copied from interface:TextCorpusGets references layer of this TextCorpus.- Specified by:
getReferencesLayerin interfaceTextCorpus- Returns:
- layer containing reference/coreference annotations on
Tokenobjects fromTokensLayer.
-
setRelationsLayer
protected void setRelationsLayer(RelationsLayerStored layer)
-
getRelationsLayer
public RelationsLayerStored getRelationsLayer()
- Specified by:
getRelationsLayerin interfaceTextCorpus
-
setMatchesLayer
protected void setMatchesLayer(MatchesLayerStored layer)
-
getMatchesLayer
public MatchesLayerStored getMatchesLayer()
Description copied from interface:TextCorpusGets matches layer of this TextCorpus.- Specified by:
getMatchesLayerin interfaceTextCorpus- Returns:
- layer matches annotations on
Tokenobjects fromTokensLayer.
-
setWordSplittingLayer
protected void setWordSplittingLayer(WordSplittingLayerStored layer)
-
getWordSplittingLayer
public WordSplittingLayerStored getWordSplittingLayer()
Description copied from interface:TextCorpusGets word splitting layer of this TextCorpus.- Specified by:
getWordSplittingLayerin interfaceTextCorpus- Returns:
- layer split annotations (e.g. hyphenation) on
Tokenobjects fromTokensLayer.
-
setPhoneticsLayer
protected void setPhoneticsLayer(PhoneticsLayerStored layer)
-
getPhoneticsLayer
public PhoneticsLayerStored getPhoneticsLayer()
Description copied from interface:TextCorpusGets phonetics layer of this TextCorpus.- Specified by:
getPhoneticsLayerin interfaceTextCorpus- Returns:
- layer containing phonetic transcriptions of
Tokenobjects fromTokensLayer.
-
setGeoLayer
protected void setGeoLayer(GeoLayerStored layer)
-
getGeoLayer
public GeoLayerStored getGeoLayer()
Description copied from interface:TextCorpusGets geo layer of this TextCorpus.- Specified by:
getGeoLayerin interfaceTextCorpus- Returns:
- layer containing geographical location annotations on
Tokenobjects fromTokensLayer.
-
setSynonymyLayer
protected void setSynonymyLayer(SynonymyLayerStored layer)
-
getSynonymyLayer
public SynonymyLayerStored getSynonymyLayer()
Description copied from interface:TextCorpusGets synonymy layer of this TextCorpus.- Specified by:
getSynonymyLayerin interfaceTextCorpus- Returns:
- layer containing synonyms of
Lemmaobjects fromLemmasLayer.
-
setAntonymyLayer
protected void setAntonymyLayer(AntonymyLayerStored layer)
-
getAntonymyLayer
public AntonymyLayerStored getAntonymyLayer()
Description copied from interface:TextCorpusGets antonymy layer of this TextCorpus.- Specified by:
getAntonymyLayerin interfaceTextCorpus- Returns:
- layer containing antonyms of
Lemmaobjects fromLemmasLayer.
-
setHyponymyLayer
protected void setHyponymyLayer(HyponymyLayerStored layer)
-
getHyponymyLayer
public HyponymyLayerStored getHyponymyLayer()
Description copied from interface:TextCorpusGets hyponymy layer of this TextCorpus.- Specified by:
getHyponymyLayerin interfaceTextCorpus- Returns:
- layer containing hyponyms of
Lemmaobjects fromLemmasLayer.
-
setHyperonymyLayer
protected void setHyperonymyLayer(HyperonymyLayerStored layer)
-
getHyperonymyLayer
public HyperonymyLayerStored getHyperonymyLayer()
Description copied from interface:TextCorpusGets hyperonymy layer of this TextCorpus.- Specified by:
getHyperonymyLayerin interfaceTextCorpus- Returns:
- layer containing hyperonyms of
Lemmaobjects fromLemmasLayer.
-
setTextStructureLayer
protected void setTextStructureLayer(TextStructureLayerStored layer)
-
getTextStructureLayer
public TextStructureLayerStored getTextStructureLayer()
Description copied from interface:TextCorpusGets text structure layer of this TextCorpus.- Specified by:
getTextStructureLayerin interfaceTextCorpus- Returns:
- layer containing original text structure (such as paragraphs,
lines, pages, etc.), anchored on
Tokenobjects fromTokensLayer.
-
setOrthographyLayer
protected void setOrthographyLayer(OrthographyLayerStored layer)
-
getOrthographyLayer
public OrthographyLayerStored getOrthographyLayer()
Description copied from interface:TextCorpusGets orthography layer of this TextCorpus.- Specified by:
getOrthographyLayerin interfaceTextCorpus- Returns:
- layer containing correct orthographic spellings of misspelled
Tokenobjects fromTokensLayer.
-
setDiscourseConnectivesLayer
protected void setDiscourseConnectivesLayer(DiscourseConnectivesLayerStored layer)
-
setTextSourceLayer
protected void setTextSourceLayer(TextSourceLayerStored layer)
-
getDiscourseConnectivesLayer
public DiscourseConnectivesLayerStored getDiscourseConnectivesLayer()
Description copied from interface:TextCorpusGets discourse connectives layer of this TextCorpus.- Specified by:
getDiscourseConnectivesLayerin interfaceTextCorpus- Returns:
- layer containing discourse connectives annotations on
Tokenobjects fromTokensLayer.
-
setWordSensesLayer
protected void setWordSensesLayer(WordSensesLayerStored layer)
-
getWordSensesLayer
public WordSensesLayerStored getWordSensesLayer()
Description copied from interface:TextCorpusGets word senses layer of this TextCorpus.- Specified by:
getWordSensesLayerin interfaceTextCorpus- Returns:
- layer containing word sense annotations on
Tokenobjects fromTokensLayer.
-
getTextSourceLayer
public TextSourceLayerStored getTextSourceLayer()
Description copied from interface:TextCorpusGets textSource layer of this TextSource.- Specified by:
getTextSourceLayerin interfaceTextCorpus- Returns:
- annotation layer containing text.
-
afterUnmarshal
protected void afterUnmarshal(Unmarshaller u, Object parent)
-
connectLayers
protected void connectLayers()
-
compose
public static TextCorpusStored compose(String lang, TextCorpusLayerStoredAbstract... layers)
Composes the layers into one document. Normally, you should not use this method, unless you want to manually compose document from the layer pieces.The method composes correctly only in case referencing between layers (IDs <- IDREFs) is correct- Parameters:
lang-layers-- Returns:
- text corpus data composed of the provided layers
-
-