|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.clarin.weblicht.wlfxb.tc.xb.TextCorpusStored
public class TextCorpusStored
| 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 |
|---|
public static final String XML_NAME
public static final String XML_NAMESPACE
protected String lang
protected TextCorpusLayerStoredAbstract[] layersInOrder
| Constructor Detail |
|---|
public TextCorpusStored(String language)
| Method Detail |
|---|
public String getLanguage()
TextCorpus
getLanguage in interface TextCorpuspublic List<TextCorpusLayer> getLayers()
TextCorpus
getLayers in interface TextCorpuspublic TextLayer createTextLayer()
TextCorpusTextLayer in this TextCorpus.
createTextLayer in interface TextCorpuspublic TokensLayer createTokensLayer()
TextCorpusTokensLayer in this TextCorpus.
createTokensLayer in interface TextCorpuspublic TokensLayer createTokensLayer(boolean hasCharOffsets)
TextCorpusTokensLayer in this TextCorpus.
createTokensLayer in interface TextCorpushasCharOffsets - true if the Token objects in this
TokensLayer will contain character offset in text information,
false otherwise.
public LemmasLayer createLemmasLayer()
TextCorpusLemmasLayer in this TextCorpus.
createLemmasLayer in interface TextCorpuspublic PosTagsLayer createPosTagsLayer(String tagset)
TextCorpusPosTagsLayer with the given tagset in this
TextCorpus.
createPosTagsLayer in interface TextCorpustagset - of the part-of-speech annotations.
public SentencesLayer createSentencesLayer()
TextCorpusSentencesLayer in this TextCorpus.
createSentencesLayer in interface TextCorpuspublic SentencesLayer createSentencesLayer(boolean hasCharOffsets)
TextCorpusSentencesLayer in this TextCorpus.
createSentencesLayer in interface TextCorpushasCharOffsets - true if the Sentence objects in this
SentencesLayer will contain character offset in text
information, false otherwise.
public ConstituentParsingLayer createConstituentParsingLayer(String tagset)
TextCorpusConstituentParsingLayer with the given tagset in
this TextCorpus.
createConstituentParsingLayer in interface TextCorpustagset - of the parsing annotations.
public DependencyParsingLayer createDependencyParsingLayer(String tagset,
boolean multipleGovernorsPossible,
boolean emptyTokensPossible)
TextCorpusDependencyParsingLayer with the given tagset in
this TextCorpus.
createDependencyParsingLayer in interface TextCorpustagset - 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.
public DependencyParsingLayer createDependencyParsingLayer(boolean multipleGovernorsPossible,
boolean emptyTokensPossible)
TextCorpusDependencyParsingLayer in this TextCorpus.
createDependencyParsingLayer in interface TextCorpusmultipleGovernorsPossible - true if a dependent can be governed by
more than 1 governor, false otherwise.emptyTokensPossible - true if dependency annotations can contain
empty tokens.
public MorphologyLayer createMorphologyLayer()
public MorphologyLayer createMorphologyLayer(boolean hasSegmentation)
TextCorpusMorphologyLayer in this TextCorpus.
createMorphologyLayer in interface TextCorpushasSegmentation - true if morphology annotations contain
segmentation analysis.
public MorphologyLayer createMorphologyLayer(boolean hasSegmentation,
boolean hasCharOffsets)
TextCorpusMorphologyLayer in this TextCorpus.
createMorphologyLayer in interface TextCorpushasSegmentation - 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.
public NamedEntitiesLayer createNamedEntitiesLayer(String entitiesType)
TextCorpusNamedEntitiesLayer with the given tagset for named
entity types in this TextCorpus.
createNamedEntitiesLayer in interface TextCorpusentitiesType - tagset of the named entity annotations.
public ReferencesLayer createReferencesLayer(String typetagset,
String reltagset,
String externalReferencesSource)
TextCorpus
createReferencesLayer in interface TextCorpustypetagset - 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)
public RelationsLayer createRelationsLayer(String type)
createRelationsLayer in interface TextCorpus
public MatchesLayer createMatchesLayer(String queryLanguage,
String queryString)
TextCorpus
createMatchesLayer in interface TextCorpusqueryLanguage - language of the query used to extract corpus matches
from a corpus.queryString - the query used to extract corpus matches from a
corpus.
public WordSplittingLayer createWordSplittingLayer(String type)
TextCorpusWordSplittingLayer with the given type of the
splitting in this TextCorpus.
createWordSplittingLayer in interface TextCorpustype - of the splitting, e.g. hyphenation.
public PhoneticsLayer createPhotenicsLayer(String alphabet)
TextCorpusPhoneticsLayer with the given alphabet for phonetic
transcriptions in this TextCorpus.
createPhotenicsLayer in interface TextCorpusalphabet - of the phonetic transcription annotations.
public GeoLayer createGeoLayer(String source,
GeoLongLatFormat coordFormat)
TextCorpusGeoLayer in this TextCorpus.
createGeoLayer in interface TextCorpussource - of the geographical coordinates.coordFormat - format of the geographical coordinates.
public GeoLayer createGeoLayer(String source,
GeoLongLatFormat coordFormat,
GeoContinentFormat continentFormat)
public GeoLayer createGeoLayer(String source,
GeoLongLatFormat coordFormat,
GeoContinentFormat continentFormat,
GeoCountryFormat countryFormat)
public GeoLayer createGeoLayer(String source,
GeoLongLatFormat coordFormat,
GeoContinentFormat continentFormat,
GeoCapitalFormat capitalFormat)
public GeoLayer createGeoLayer(String source,
GeoLongLatFormat coordFormat,
GeoCountryFormat countryFormat)
public GeoLayer createGeoLayer(String source,
GeoLongLatFormat coordFormat,
GeoCountryFormat countryFormat,
GeoCapitalFormat capitalFormat)
public GeoLayer createGeoLayer(String source,
GeoLongLatFormat coordFormat,
GeoCapitalFormat capitalFormat)
public GeoLayer createGeoLayer(String source,
GeoLongLatFormat coordFormat,
GeoContinentFormat continentFormat,
GeoCountryFormat countryFormat,
GeoCapitalFormat capitalFormat)
TextCorpusGeoLayer in this TextCorpus.
createGeoLayer in interface TextCorpussource - 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).
public LexicalSemanticsLayer createSynonymyLayer(String source)
TextCorpus
createSynonymyLayer in interface TextCorpussource - from where the synonyms were taken.
public LexicalSemanticsLayer createAntonymyLayer(String source)
TextCorpus
createAntonymyLayer in interface TextCorpussource - from where the antonyms were taken.
public LexicalSemanticsLayer createHyponymyLayer(String source)
TextCorpus
createHyponymyLayer in interface TextCorpussource - from where the hyponyms were taken.
public LexicalSemanticsLayer createHyperonymyLayer(String source)
TextCorpus
createHyperonymyLayer in interface TextCorpussource - from where the hyperonyms were taken.
public OrthographyLayer createOrthographyLayer()
TextCorpusOrthographyLayer in this TextCorpus.
createOrthographyLayer in interface TextCorpuspublic TextStructureLayer createTextStructureLayer()
TextCorpusTextStructureLayer in this TextCorpus.
createTextStructureLayer in interface TextCorpuspublic DiscourseConnectivesLayer createDiscourseConnectivesLayer()
TextCorpusDiscourseConnectivesLayer in this
TextCorpus.
createDiscourseConnectivesLayer in interface TextCorpuspublic DiscourseConnectivesLayer createDiscourseConnectivesLayer(String typesTagset)
TextCorpusDiscourseConnectivesLayer in this
TextCorpus.
createDiscourseConnectivesLayer in interface TextCorpustypesTagset - tagset used to label semantic types of the connectives
protected void setTextLayer(TextLayerStored layer)
public TextLayerStored getTextLayer()
TextCorpus
getTextLayer in interface TextCorpusprotected void setTokensLayer(TokensLayerStored layer)
public TokensLayerStored getTokensLayer()
TextCorpus
getTokensLayer in interface TextCorpusprotected void setSentencesLayer(SentencesLayerStored layer)
public SentencesLayerStored getSentencesLayer()
TextCorpus
getSentencesLayer in interface TextCorpusToken
objects from TokensLayer.protected void setLemmasLayer(LemmasLayerStored layer)
public LemmasLayerStored getLemmasLayer()
TextCorpus
getLemmasLayer in interface TextCorpusToken objects from
TokensLayer.protected void setPosTagsLayer(PosTagsLayerStored layer)
public PosTagsLayerStored getPosTagsLayer()
TextCorpus
getPosTagsLayer in interface TextCorpusToken
objects from TokensLayer.protected void setConstituentParsingLayer(ConstituentParsingLayerStored layer)
public ConstituentParsingLayerStored getConstituentParsingLayer()
TextCorpus
getConstituentParsingLayer in interface TextCorpusToken
objects from TokensLayer.protected void setDependencyParsingLayer(DependencyParsingLayerStored layer)
public DependencyParsingLayerStored getDependencyParsingLayer()
TextCorpus
getDependencyParsingLayer in interface TextCorpusToken
objects from TokensLayer.protected void setMorphologyLayer(MorphologyLayerStored layer)
public MorphologyLayerStored getMorphologyLayer()
TextCorpus
getMorphologyLayer in interface TextCorpusToken objects from TokensLayer.protected void setNamedEntitiesLayer(NamedEntitiesLayerStored layer)
public NamedEntitiesLayerStored getNamedEntitiesLayer()
TextCorpus
getNamedEntitiesLayer in interface TextCorpusToken
objects from TokensLayer.protected void setReferencesLayer(ReferencesLayerStored layer)
public ReferencesLayerStored getReferencesLayer()
TextCorpus
getReferencesLayer in interface TextCorpusToken objects from TokensLayer.protected void setRelationsLayer(RelationsLayerStored layer)
public RelationsLayerStored getRelationsLayer()
getRelationsLayer in interface TextCorpusprotected void setMatchesLayer(MatchesLayerStored layer)
public MatchesLayerStored getMatchesLayer()
TextCorpus
getMatchesLayer in interface TextCorpusToken objects from
TokensLayer.protected void setWordSplittingLayer(WordSplittingLayerStored layer)
public WordSplittingLayerStored getWordSplittingLayer()
TextCorpus
getWordSplittingLayer in interface TextCorpusToken
objects from TokensLayer.protected void setPhoneticsLayer(PhoneticsLayerStored layer)
public PhoneticsLayerStored getPhoneticsLayer()
TextCorpus
getPhoneticsLayer in interface TextCorpusToken objects
from TokensLayer.protected void setGeoLayer(GeoLayerStored layer)
public GeoLayerStored getGeoLayer()
TextCorpus
getGeoLayer in interface TextCorpusToken objects from TokensLayer.protected void setSynonymyLayer(SynonymyLayerStored layer)
public SynonymyLayerStored getSynonymyLayer()
TextCorpus
getSynonymyLayer in interface TextCorpusLemma objects from
LemmasLayer.protected void setAntonymyLayer(AntonymyLayerStored layer)
public AntonymyLayerStored getAntonymyLayer()
TextCorpus
getAntonymyLayer in interface TextCorpusLemma objects from
LemmasLayer.protected void setHyponymyLayer(HyponymyLayerStored layer)
public HyponymyLayerStored getHyponymyLayer()
TextCorpus
getHyponymyLayer in interface TextCorpusLemma objects from
LemmasLayer.protected void setHyperonymyLayer(HyperonymyLayerStored layer)
public HyperonymyLayerStored getHyperonymyLayer()
TextCorpus
getHyperonymyLayer in interface TextCorpusLemma objects from
LemmasLayer.protected void setTextStructureLayer(TextStructureLayerStored layer)
public TextStructureLayerStored getTextStructureLayer()
TextCorpus
getTextStructureLayer in interface TextCorpusToken objects from
TokensLayer.protected void setOrthographyLayer(OrthographyLayerStored layer)
public OrthographyLayerStored getOrthographyLayer()
TextCorpus
getOrthographyLayer in interface TextCorpusToken objects from TokensLayer.protected void setDiscourseConnectivesLayer(DiscourseConnectivesLayerStored layer)
public DiscourseConnectivesLayerStored getDiscourseConnectivesLayer()
TextCorpus
getDiscourseConnectivesLayer in interface TextCorpusToken objects from TokensLayer.
protected void afterUnmarshal(Unmarshaller u,
Object parent)
protected void connectLayers()
public String toString()
toString in class Object
public static TextCorpusStored compose(String lang,
TextCorpusLayerStoredAbstract... layers)
lang - layers -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||