Class WLData


  • public class WLData
    extends Object
    Class WLData represents TCF annotations. Corresponds to TCF specification. WLData annotations can be: TextCorpus annotations represent annotations on written connected text, Lexicon annotations represent linguistic information on a list of words, ExternalData annotations represent annotations that are related to the annotations inside TCF but themselves are stored outside of TCF. Class WLData can be marshaled into XML representation of TCF. See also WLDObjector.
    Author:
    Yana Panchenko
    • Constructor Detail

      • WLData

        public WLData​(MetaData metaData,
                      ExternalDataStored extData)
        Creates WLData with the given meta data and external data annotations.
        Parameters:
        metaData - meta data
        extData - external data
      • WLData

        public WLData​(MetaData metaData,
                      TextCorpusStored textCorpus)
        Creates WLData with the given meta data and text corpus annotations.
        Parameters:
        metaData - meta data
        textCorpus - text corpus
      • WLData

        public WLData​(MetaData metaData,
                      ExternalDataStored extData,
                      TextCorpusStored textCorpus)
        Creates WLData with the given meta data, external data and text corpus annotations.
        Parameters:
        metaData - meta data
        extData - external data
        textCorpus - text corpus
      • WLData

        public WLData​(TextCorpusStored textCorpus)
        Creates WLData with the given text corpus annotations.
        Parameters:
        textCorpus - text corpus
      • WLData

        public WLData​(ExternalDataStored extData)
        Creates WLData with the given external data annotations.
        Parameters:
        extData - external data
      • WLData

        public WLData​(ExternalDataStored extData,
                      TextCorpusStored textCorpus)
        Creates WLData with the given external data and text corpus annotations.
        Parameters:
        extData - external data
        textCorpus - text corpus
      • WLData

        public WLData​(MetaData metaData,
                      LexiconStored lexicon)
        Creates WLData with the given meta data and lexicon annotations.
        Parameters:
        metaData - meta data
        lexicon - lexicon
      • WLData

        public WLData​(LexiconStored lexicon)
        Creates WLData with the given lexicon annotations.
        Parameters:
        lexicon - lexicon
    • Method Detail

      • getVersion

        public String getVersion()
        Gets version of the WLData.
        Returns:
        the version.
      • getMetaData

        public MetaData getMetaData()
        Gets meta data of the WLData.
        Returns:
        the meta data.
      • getExternalData

        public ExternalDataStored getExternalData()
        Gets external data annotations of the WLData.
        Returns:
        the external data annotations.
      • getTextCorpus

        public TextCorpusStored getTextCorpus()
        Gets text corpus annotations of the WLData.
        Returns:
        the text corpus annotations.
      • getLexicon

        public LexiconStored getLexicon()
        Gets lexicon annotations of the WLData.
        Returns:
        the lexicon annotations.
      • setVersion

        public void setVersion​(String version)
        Sets version of the WLData.
        Parameters:
        version - the version string