eu.clarin.weblicht.wlfxb.tc.xb
Class TextCorpusStored

java.lang.Object
  extended by eu.clarin.weblicht.wlfxb.tc.xb.TextCorpusStored
All Implemented Interfaces:
TextCorpus
Direct Known Subclasses:
TextCorpusStreamed

public class TextCorpusStored
extends Object
implements TextCorpus

Author:
Yana Panchenko

Field Summary
protected  String lang
           
protected  TextCorpusLayerStoredAbstract[] layersInOrder
           
static String XML_NAME
           
static String XML_NAMESPACE
           
 
Constructor Summary
TextCorpusStored(String language)
           
 
Method Summary
protected  void afterUnmarshal(Unmarshaller u, Object parent)
           
static TextCorpusStored compose(String lang, TextCorpusLayerStoredAbstract... layers)
          Composes the layers into one document.
protected  void connectLayers()
           
 LexicalSemanticsLayer createAntonymyLayer(String source)
          Creates empty antonymy layer in this TextCorpus.
 ConstituentParsingLayer createConstituentParsingLayer(String tagset)
          Creates empty ConstituentParsingLayer with the given tagset in this TextCorpus.
 DependencyParsingLayer createDependencyParsingLayer(boolean multipleGovernorsPossible, boolean emptyTokensPossible)
          Creates empty DependencyParsingLayer in this TextCorpus.
 DependencyParsingLayer createDependencyParsingLayer(String tagset, boolean multipleGovernorsPossible, boolean emptyTokensPossible)
          Creates empty DependencyParsingLayer with the given tagset in this TextCorpus.
 DiscourseConnectivesLayer createDiscourseConnectivesLayer()
          Creates empty DiscourseConnectivesLayer in this TextCorpus.
 DiscourseConnectivesLayer createDiscourseConnectivesLayer(String typesTagset)
          Creates empty DiscourseConnectivesLayer in this TextCorpus.
 GeoLayer createGeoLayer(String source, GeoLongLatFormat coordFormat)
          Creates empty GeoLayer in this TextCorpus.
 GeoLayer createGeoLayer(String source, GeoLongLatFormat coordFormat, GeoCapitalFormat capitalFormat)
           
 GeoLayer createGeoLayer(String source, GeoLongLatFormat coordFormat, GeoContinentFormat continentFormat)
           
 GeoLayer createGeoLayer(String source, GeoLongLatFormat coordFormat, GeoContinentFormat continentFormat, GeoCapitalFormat capitalFormat)
           
 GeoLayer createGeoLayer(String source, GeoLongLatFormat coordFormat, GeoContinentFormat continentFormat, GeoCountryFormat countryFormat)
           
 GeoLayer createGeoLayer(String source, GeoLongLatFormat coordFormat, GeoContinentFormat continentFormat, GeoCountryFormat countryFormat, GeoCapitalFormat capitalFormat)
          Creates empty GeoLayer in this TextCorpus.
 GeoLayer createGeoLayer(String source, GeoLongLatFormat coordFormat, GeoCountryFormat countryFormat)
           
 GeoLayer createGeoLayer(String source, GeoLongLatFormat coordFormat, GeoCountryFormat countryFormat, GeoCapitalFormat capitalFormat)
           
 LexicalSemanticsLayer createHyperonymyLayer(String source)
          Creates empty hyperonymy layer in this TextCorpus.
 LexicalSemanticsLayer createHyponymyLayer(String source)
          Creates empty hyponymy layer in this TextCorpus.
 LemmasLayer createLemmasLayer()
          Creates empty LemmasLayer in this TextCorpus.
 MatchesLayer createMatchesLayer(String queryLanguage, String queryString)
          Creates empty MatchesLayer layers of this TextCorpus, ready to be filled in with the corpus match annotations.
 MorphologyLayer createMorphologyLayer()
           
 MorphologyLayer createMorphologyLayer(boolean hasSegmentation)
          Creates empty MorphologyLayer in this TextCorpus.
 MorphologyLayer createMorphologyLayer(boolean hasSegmentation, boolean hasCharOffsets)
          Creates empty MorphologyLayer in this TextCorpus.
 NamedEntitiesLayer createNamedEntitiesLayer(String entitiesType)
          Creates empty NamedEntitiesLayer with the given tagset for named entity types in this TextCorpus.
 OrthographyLayer createOrthographyLayer()
          Creates empty OrthographyLayer in this TextCorpus.
 PhoneticsLayer createPhotenicsLayer(String alphabet)
          Creates empty PhoneticsLayer with the given alphabet for phonetic transcriptions in this TextCorpus.
 PosTagsLayer createPosTagsLayer(String tagset)
          Creates empty PosTagsLayer with the given tagset in this TextCorpus.
 ReferencesLayer createReferencesLayer(String typetagset, String reltagset, String externalReferencesSource)
          Creates empty references layers of this TextCorpus, ready to be filled in with the references data.
 RelationsLayer createRelationsLayer(String type)
           
 SentencesLayer createSentencesLayer()
          Creates empty SentencesLayer in this TextCorpus.
 SentencesLayer createSentencesLayer(boolean hasCharOffsets)
          Creates empty SentencesLayer in this TextCorpus.
 LexicalSemanticsLayer createSynonymyLayer(String source)
          Creates empty synonymy layer in this TextCorpus.
 TextLayer createTextLayer()
          Creates empty TextLayer in this TextCorpus.
 TextStructureLayer createTextStructureLayer()
          Creates empty TextStructureLayer in this TextCorpus.
 TokensLayer createTokensLayer()
          Creates empty TokensLayer in this TextCorpus.
 TokensLayer createTokensLayer(boolean hasCharOffsets)
          Creates empty TokensLayer in this TextCorpus.
 WordSplittingLayer createWordSplittingLayer(String type)
          Creates empty WordSplittingLayer with the given type of the splitting in this TextCorpus.
 AntonymyLayerStored getAntonymyLayer()
          Gets antonymy layer of this TextCorpus.
 ConstituentParsingLayerStored getConstituentParsingLayer()
          Gets constituent parsing layer of this TextCorpus.
 DependencyParsingLayerStored getDependencyParsingLayer()
          Gets dependency parsing layer of this TextCorpus.
 DiscourseConnectivesLayerStored getDiscourseConnectivesLayer()
          Gets discourse connectives layer of this TextCorpus.
 GeoLayerStored getGeoLayer()
          Gets geo layer of this TextCorpus.
 HyperonymyLayerStored getHyperonymyLayer()
          Gets hyperonymy layer of this TextCorpus.
 HyponymyLayerStored getHyponymyLayer()
          Gets hyponymy layer of this TextCorpus.
 String getLanguage()
          Gets the language of the text/tokens in this TextCorpus.
 List<TextCorpusLayer> getLayers()
          Gets all annotation layers of this TextCorpus.
 LemmasLayerStored getLemmasLayer()
          Gets lemmas layer of this TextCorpus.
 MatchesLayerStored getMatchesLayer()
          Gets matches layer of this TextCorpus.
 MorphologyLayerStored getMorphologyLayer()
          Gets morphology layer of this TextCorpus.
 NamedEntitiesLayerStored getNamedEntitiesLayer()
          Gets named entities layer of this TextCorpus.
 OrthographyLayerStored getOrthographyLayer()
          Gets orthography layer of this TextCorpus.
 PhoneticsLayerStored getPhoneticsLayer()
          Gets phonetics layer of this TextCorpus.
 PosTagsLayerStored getPosTagsLayer()
          Gets part-of-speech layer of this TextCorpus.
 ReferencesLayerStored getReferencesLayer()
          Gets references layer of this TextCorpus.
 RelationsLayerStored getRelationsLayer()
           
 SentencesLayerStored getSentencesLayer()
          Gets sentences layer of this TextCorpus.
 SynonymyLayerStored getSynonymyLayer()
          Gets synonymy layer of this TextCorpus.
 TextLayerStored getTextLayer()
          Gets text layer of this TextCorpus.
 TextStructureLayerStored getTextStructureLayer()
          Gets text structure layer of this TextCorpus.
 TokensLayerStored getTokensLayer()
          Gets tokens layer of this TextCorpus.
 WordSplittingLayerStored getWordSplittingLayer()
          Gets word splitting layer of this TextCorpus.
protected  void setAntonymyLayer(AntonymyLayerStored layer)
           
protected  void setConstituentParsingLayer(ConstituentParsingLayerStored layer)
           
protected  void setDependencyParsingLayer(DependencyParsingLayerStored layer)
           
protected  void setDiscourseConnectivesLayer(DiscourseConnectivesLayerStored layer)
           
protected  void setGeoLayer(GeoLayerStored layer)
           
protected  void setHyperonymyLayer(HyperonymyLayerStored layer)
           
protected  void setHyponymyLayer(HyponymyLayerStored layer)
           
protected  void setLemmasLayer(LemmasLayerStored layer)
           
protected  void setMatchesLayer(MatchesLayerStored layer)
           
protected  void setMorphologyLayer(MorphologyLayerStored layer)
           
protected  void setNamedEntitiesLayer(NamedEntitiesLayerStored layer)
           
protected  void setOrthographyLayer(OrthographyLayerStored layer)
           
protected  void setPhoneticsLayer(PhoneticsLayerStored layer)
           
protected  void setPosTagsLayer(PosTagsLayerStored layer)
           
protected  void setReferencesLayer(ReferencesLayerStored layer)
           
protected  void setRelationsLayer(RelationsLayerStored layer)
           
protected  void setSentencesLayer(SentencesLayerStored layer)
           
protected  void setSynonymyLayer(SynonymyLayerStored layer)
           
protected  void setTextLayer(TextLayerStored layer)
           
protected  void setTextStructureLayer(TextStructureLayerStored layer)
           
protected  void setTokensLayer(TokensLayerStored layer)
           
protected  void setWordSplittingLayer(WordSplittingLayerStored layer)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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: TextCorpus
Gets the language of the text/tokens in this TextCorpus.

Specified by:
getLanguage in interface TextCorpus
Returns:
language of TextCorpus.

getLayers

public List<TextCorpusLayer> getLayers()
Description copied from interface: TextCorpus
Gets all annotation layers of this TextCorpus.

Specified by:
getLayers in interface TextCorpus
Returns:
annotations layers.

createTextLayer

public TextLayer createTextLayer()
Description copied from interface: TextCorpus
Creates empty TextLayer in this TextCorpus.

Specified by:
createTextLayer in interface TextCorpus
Returns:
annotation layer that has been created.

createTokensLayer

public TokensLayer createTokensLayer()
Description copied from interface: TextCorpus
Creates empty TokensLayer in this TextCorpus.

Specified by:
createTokensLayer in interface TextCorpus
Returns:
annotation layer that has been created.

createTokensLayer

public TokensLayer createTokensLayer(boolean hasCharOffsets)
Description copied from interface: TextCorpus
Creates empty TokensLayer in this TextCorpus.

Specified by:
createTokensLayer in interface TextCorpus
Parameters:
hasCharOffsets - true if the Token objects 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: TextCorpus
Creates empty LemmasLayer in this TextCorpus.

Specified by:
createLemmasLayer in interface TextCorpus
Returns:
annotation layer that has been created.

createPosTagsLayer

public PosTagsLayer createPosTagsLayer(String tagset)
Description copied from interface: TextCorpus
Creates empty PosTagsLayer with the given tagset in this TextCorpus.

Specified by:
createPosTagsLayer in interface TextCorpus
Parameters:
tagset - of the part-of-speech annotations.
Returns:
annotation layer that has been created.

createSentencesLayer

public SentencesLayer createSentencesLayer()
Description copied from interface: TextCorpus
Creates empty SentencesLayer in this TextCorpus.

Specified by:
createSentencesLayer in interface TextCorpus
Returns:
annotation layer that has been created.

createSentencesLayer

public SentencesLayer createSentencesLayer(boolean hasCharOffsets)
Description copied from interface: TextCorpus
Creates empty SentencesLayer in this TextCorpus.

Specified by:
createSentencesLayer in interface TextCorpus
Parameters:
hasCharOffsets - true if the Sentence objects 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: TextCorpus
Creates empty ConstituentParsingLayer with the given tagset in this TextCorpus.

Specified by:
createConstituentParsingLayer in interface TextCorpus
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: TextCorpus
Creates empty DependencyParsingLayer with the given tagset in this TextCorpus.

Specified by:
createDependencyParsingLayer in interface TextCorpus
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: TextCorpus
Creates empty DependencyParsingLayer in this TextCorpus.

Specified by:
createDependencyParsingLayer in interface TextCorpus
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()

createMorphologyLayer

public MorphologyLayer createMorphologyLayer(boolean hasSegmentation)
Description copied from interface: TextCorpus
Creates empty MorphologyLayer in this TextCorpus.

Specified by:
createMorphologyLayer in interface TextCorpus
Parameters:
hasSegmentation - 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: TextCorpus
Creates empty MorphologyLayer in this TextCorpus.

Specified by:
createMorphologyLayer in interface TextCorpus
Parameters:
hasSegmentation - true if morphology annotations contain segmentation analysis.
hasCharOffsets - true if the MorphologyAnalysis objects 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: TextCorpus
Creates empty NamedEntitiesLayer with the given tagset for named entity types in this TextCorpus.

Specified by:
createNamedEntitiesLayer in interface TextCorpus
Parameters:
entitiesType - tagset of the named entity annotations.
Returns:
annotation layer that has been created.

createReferencesLayer

public ReferencesLayer createReferencesLayer(String typetagset,
                                             String reltagset,
                                             String externalReferencesSource)
Description copied from interface: TextCorpus
Creates empty references layers of this TextCorpus, ready to be filled in with the references data.

Specified by:
createReferencesLayer in interface TextCorpus
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:
createRelationsLayer in interface TextCorpus

createMatchesLayer

public MatchesLayer createMatchesLayer(String queryLanguage,
                                       String queryString)
Description copied from interface: TextCorpus
Creates empty MatchesLayer layers of this TextCorpus, ready to be filled in with the corpus match annotations.

Specified by:
createMatchesLayer in interface TextCorpus
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: TextCorpus
Creates empty WordSplittingLayer with the given type of the splitting in this TextCorpus.

Specified by:
createWordSplittingLayer in interface TextCorpus
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: TextCorpus
Creates empty PhoneticsLayer with the given alphabet for phonetic transcriptions in this TextCorpus.

Specified by:
createPhotenicsLayer in interface TextCorpus
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: TextCorpus
Creates empty GeoLayer in this TextCorpus.

Specified by:
createGeoLayer in interface TextCorpus
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: TextCorpus
Creates empty GeoLayer in this TextCorpus.

Specified by:
createGeoLayer in interface TextCorpus
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(String source)
Description copied from interface: TextCorpus
Creates empty synonymy layer in this TextCorpus.

Specified by:
createSynonymyLayer in interface TextCorpus
Parameters:
source - from where the synonyms were taken.
Returns:
annotation layer that has been created.

createAntonymyLayer

public LexicalSemanticsLayer createAntonymyLayer(String source)
Description copied from interface: TextCorpus
Creates empty antonymy layer in this TextCorpus.

Specified by:
createAntonymyLayer in interface TextCorpus
Parameters:
source - from where the antonyms were taken.
Returns:
annotation layer that has been created.

createHyponymyLayer

public LexicalSemanticsLayer createHyponymyLayer(String source)
Description copied from interface: TextCorpus
Creates empty hyponymy layer in this TextCorpus.

Specified by:
createHyponymyLayer in interface TextCorpus
Parameters:
source - from where the hyponyms were taken.
Returns:
annotation layer that has been created.

createHyperonymyLayer

public LexicalSemanticsLayer createHyperonymyLayer(String source)
Description copied from interface: TextCorpus
Creates empty hyperonymy layer in this TextCorpus.

Specified by:
createHyperonymyLayer in interface TextCorpus
Parameters:
source - from where the hyperonyms were taken.
Returns:
annotation layer that has been created.

createOrthographyLayer

public OrthographyLayer createOrthographyLayer()
Description copied from interface: TextCorpus
Creates empty OrthographyLayer in this TextCorpus.

Specified by:
createOrthographyLayer in interface TextCorpus
Returns:
annotation layer that has been created.

createTextStructureLayer

public TextStructureLayer createTextStructureLayer()
Description copied from interface: TextCorpus
Creates empty TextStructureLayer in this TextCorpus.

Specified by:
createTextStructureLayer in interface TextCorpus
Returns:
annotation layer that has been created.

createDiscourseConnectivesLayer

public DiscourseConnectivesLayer createDiscourseConnectivesLayer()
Description copied from interface: TextCorpus
Creates empty DiscourseConnectivesLayer in this TextCorpus.

Specified by:
createDiscourseConnectivesLayer in interface TextCorpus
Returns:
annotation layer that has been created.

createDiscourseConnectivesLayer

public DiscourseConnectivesLayer createDiscourseConnectivesLayer(String typesTagset)
Description copied from interface: TextCorpus
Creates empty DiscourseConnectivesLayer in this TextCorpus.

Specified by:
createDiscourseConnectivesLayer in interface TextCorpus
Parameters:
typesTagset - tagset used to label semantic types of the connectives
Returns:
annotation layer that has been created.

setTextLayer

protected void setTextLayer(TextLayerStored layer)

getTextLayer

public TextLayerStored getTextLayer()
Description copied from interface: TextCorpus
Gets text layer of this TextCorpus.

Specified by:
getTextLayer in interface TextCorpus
Returns:
annotation layer containing text.

setTokensLayer

protected void setTokensLayer(TokensLayerStored layer)

getTokensLayer

public TokensLayerStored getTokensLayer()
Description copied from interface: TextCorpus
Gets tokens layer of this TextCorpus.

Specified by:
getTokensLayer in interface TextCorpus
Returns:
annotation layer containing tokens.

setSentencesLayer

protected void setSentencesLayer(SentencesLayerStored layer)

getSentencesLayer

public SentencesLayerStored getSentencesLayer()
Description copied from interface: TextCorpus
Gets sentences layer of this TextCorpus.

Specified by:
getSentencesLayer in interface TextCorpus
Returns:
layer containing sentence boundary annotations on Token objects from TokensLayer.

setLemmasLayer

protected void setLemmasLayer(LemmasLayerStored layer)

getLemmasLayer

public LemmasLayerStored getLemmasLayer()
Description copied from interface: TextCorpus
Gets lemmas layer of this TextCorpus.

Specified by:
getLemmasLayer in interface TextCorpus
Returns:
layer containing lemma annotations on Token objects from TokensLayer.

setPosTagsLayer

protected void setPosTagsLayer(PosTagsLayerStored layer)

getPosTagsLayer

public PosTagsLayerStored getPosTagsLayer()
Description copied from interface: TextCorpus
Gets part-of-speech layer of this TextCorpus.

Specified by:
getPosTagsLayer in interface TextCorpus
Returns:
layer containing part-of-speech annotations on Token objects from TokensLayer.

setConstituentParsingLayer

protected void setConstituentParsingLayer(ConstituentParsingLayerStored layer)

getConstituentParsingLayer

public ConstituentParsingLayerStored getConstituentParsingLayer()
Description copied from interface: TextCorpus
Gets constituent parsing layer of this TextCorpus.

Specified by:
getConstituentParsingLayer in interface TextCorpus
Returns:
layer containing constituent parsing annotations on Token objects from TokensLayer.

setDependencyParsingLayer

protected void setDependencyParsingLayer(DependencyParsingLayerStored layer)

getDependencyParsingLayer

public DependencyParsingLayerStored getDependencyParsingLayer()
Description copied from interface: TextCorpus
Gets dependency parsing layer of this TextCorpus.

Specified by:
getDependencyParsingLayer in interface TextCorpus
Returns:
layer containing dependency parsing annotations on Token objects from TokensLayer.

setMorphologyLayer

protected void setMorphologyLayer(MorphologyLayerStored layer)

getMorphologyLayer

public MorphologyLayerStored getMorphologyLayer()
Description copied from interface: TextCorpus
Gets morphology layer of this TextCorpus.

Specified by:
getMorphologyLayer in interface TextCorpus
Returns:
layer containing morphological analysis annotations on Token objects from TokensLayer.

setNamedEntitiesLayer

protected void setNamedEntitiesLayer(NamedEntitiesLayerStored layer)

getNamedEntitiesLayer

public NamedEntitiesLayerStored getNamedEntitiesLayer()
Description copied from interface: TextCorpus
Gets named entities layer of this TextCorpus.

Specified by:
getNamedEntitiesLayer in interface TextCorpus
Returns:
layer containing named entity annotations on Token objects from TokensLayer.

setReferencesLayer

protected void setReferencesLayer(ReferencesLayerStored layer)

getReferencesLayer

public ReferencesLayerStored getReferencesLayer()
Description copied from interface: TextCorpus
Gets references layer of this TextCorpus.

Specified by:
getReferencesLayer in interface TextCorpus
Returns:
layer containing reference/coreference annotations on Token objects from TokensLayer.

setRelationsLayer

protected void setRelationsLayer(RelationsLayerStored layer)

getRelationsLayer

public RelationsLayerStored getRelationsLayer()
Specified by:
getRelationsLayer in interface TextCorpus

setMatchesLayer

protected void setMatchesLayer(MatchesLayerStored layer)

getMatchesLayer

public MatchesLayerStored getMatchesLayer()
Description copied from interface: TextCorpus
Gets matches layer of this TextCorpus.

Specified by:
getMatchesLayer in interface TextCorpus
Returns:
layer matches annotations on Token objects from TokensLayer.

setWordSplittingLayer

protected void setWordSplittingLayer(WordSplittingLayerStored layer)

getWordSplittingLayer

public WordSplittingLayerStored getWordSplittingLayer()
Description copied from interface: TextCorpus
Gets word splitting layer of this TextCorpus.

Specified by:
getWordSplittingLayer in interface TextCorpus
Returns:
layer split annotations (e.g. hyphenation) on Token objects from TokensLayer.

setPhoneticsLayer

protected void setPhoneticsLayer(PhoneticsLayerStored layer)

getPhoneticsLayer

public PhoneticsLayerStored getPhoneticsLayer()
Description copied from interface: TextCorpus
Gets phonetics layer of this TextCorpus.

Specified by:
getPhoneticsLayer in interface TextCorpus
Returns:
layer containing phonetic transcriptions of Token objects from TokensLayer.

setGeoLayer

protected void setGeoLayer(GeoLayerStored layer)

getGeoLayer

public GeoLayerStored getGeoLayer()
Description copied from interface: TextCorpus
Gets geo layer of this TextCorpus.

Specified by:
getGeoLayer in interface TextCorpus
Returns:
layer containing geographical location annotations on Token objects from TokensLayer.

setSynonymyLayer

protected void setSynonymyLayer(SynonymyLayerStored layer)

getSynonymyLayer

public SynonymyLayerStored getSynonymyLayer()
Description copied from interface: TextCorpus
Gets synonymy layer of this TextCorpus.

Specified by:
getSynonymyLayer in interface TextCorpus
Returns:
layer containing synonyms of Lemma objects from LemmasLayer.

setAntonymyLayer

protected void setAntonymyLayer(AntonymyLayerStored layer)

getAntonymyLayer

public AntonymyLayerStored getAntonymyLayer()
Description copied from interface: TextCorpus
Gets antonymy layer of this TextCorpus.

Specified by:
getAntonymyLayer in interface TextCorpus
Returns:
layer containing antonyms of Lemma objects from LemmasLayer.

setHyponymyLayer

protected void setHyponymyLayer(HyponymyLayerStored layer)

getHyponymyLayer

public HyponymyLayerStored getHyponymyLayer()
Description copied from interface: TextCorpus
Gets hyponymy layer of this TextCorpus.

Specified by:
getHyponymyLayer in interface TextCorpus
Returns:
layer containing hyponyms of Lemma objects from LemmasLayer.

setHyperonymyLayer

protected void setHyperonymyLayer(HyperonymyLayerStored layer)

getHyperonymyLayer

public HyperonymyLayerStored getHyperonymyLayer()
Description copied from interface: TextCorpus
Gets hyperonymy layer of this TextCorpus.

Specified by:
getHyperonymyLayer in interface TextCorpus
Returns:
layer containing hyperonyms of Lemma objects from LemmasLayer.

setTextStructureLayer

protected void setTextStructureLayer(TextStructureLayerStored layer)

getTextStructureLayer

public TextStructureLayerStored getTextStructureLayer()
Description copied from interface: TextCorpus
Gets text structure layer of this TextCorpus.

Specified by:
getTextStructureLayer in interface TextCorpus
Returns:
layer containing original text structure (such as paragraphs, lines, pages, etc.), anchored on Token objects from TokensLayer.

setOrthographyLayer

protected void setOrthographyLayer(OrthographyLayerStored layer)

getOrthographyLayer

public OrthographyLayerStored getOrthographyLayer()
Description copied from interface: TextCorpus
Gets orthography layer of this TextCorpus.

Specified by:
getOrthographyLayer in interface TextCorpus
Returns:
layer containing correct orthographic spellings of misspelled Token objects from TokensLayer.

setDiscourseConnectivesLayer

protected void setDiscourseConnectivesLayer(DiscourseConnectivesLayerStored layer)

getDiscourseConnectivesLayer

public DiscourseConnectivesLayerStored getDiscourseConnectivesLayer()
Description copied from interface: TextCorpus
Gets discourse connectives layer of this TextCorpus.

Specified by:
getDiscourseConnectivesLayer in interface TextCorpus
Returns:
layer containing discourse connectives annotations on Token objects from TokensLayer.

afterUnmarshal

protected void afterUnmarshal(Unmarshaller u,
                              Object parent)

connectLayers

protected void connectLayers()

toString

public String toString()
Overrides:
toString in class Object

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


Copyright © 2013 Department of Linguistics, Tübingen University. All Rights Reserved.