public class TextCorpusStreamed extends TextCorpusStored implements Closeable
WLData class.lang, layersInOrder, XML_NAME, XML_NAMESPACE| Constructor and Description |
|---|
TextCorpusStreamed(InputStream inputStream,
EnumSet<TextCorpusLayerTag> layersToRead)
Creates a TextCorpusStreamed from the given TCF input stream and
specified annotation layers.
|
TextCorpusStreamed(InputStream inputStream,
EnumSet<TextCorpusLayerTag> layersToRead,
OutputStream outputStream)
Creates a TextCorpusStreamed from the given TCF input stream,
specified annotation layers and the output stream.
|
TextCorpusStreamed(InputStream inputStream,
EnumSet<TextCorpusLayerTag> layersToRead,
OutputStream outputStream,
boolean outputAsXmlFragment)
Creates a TextCorpusStreamed from the given TCF input stream,
specified annotation layers and the output stream.
|
TextCorpusStreamed(InputStream inputStream,
EnumSet<TextCorpusLayerTag> layersToRead,
OutputStream outputStream,
List<MetaDataItem> metaDataToAdd)
Creates a TextCorpusStreamed from the given TCF input stream,
specified annotation layers, output stream and meta data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the input and output streams associated with this object and
releases any associated system resources.
|
afterUnmarshal, compose, connectLayers, createAntonymyLayer, createChunksLayer, createConstituentParsingLayer, createDependencyParsingLayer, createDependencyParsingLayer, createDiscourseConnectivesLayer, createDiscourseConnectivesLayer, createGeoLayer, createGeoLayer, createGeoLayer, createGeoLayer, createGeoLayer, createGeoLayer, createGeoLayer, createGeoLayer, createHyperonymyLayer, createHyponymyLayer, createLemmasLayer, createMatchesLayer, createMorphologyLayer, createMorphologyLayer, createMorphologyLayer, createMorphologyLayer, createMorphologyLayer, createMorphologyLayer, createNamedEntitiesLayer, createOrthographyLayer, createPhotenicsLayer, createPosTagsLayer, createReferencesLayer, createRelationsLayer, createSentencesLayer, createSentencesLayer, createSynonymyLayer, createTextLayer, createTextSourceLayer, createTextStructureLayer, createTokensLayer, createTokensLayer, createWordSensesLayer, createWordSplittingLayer, getAntonymyLayer, getChunksLayer, getConstituentParsingLayer, getDependencyParsingLayer, getDiscourseConnectivesLayer, getGeoLayer, getHyperonymyLayer, getHyponymyLayer, getLanguage, getLayers, getLemmasLayer, getMatchesLayer, getMorphologyLayer, getNamedEntitiesLayer, getOrthographyLayer, getPhoneticsLayer, getPosTagsLayer, getReferencesLayer, getRelationsLayer, getSentencesLayer, getSynonymyLayer, getTextLayer, getTextSourceLayer, getTextStructureLayer, getTokensLayer, getWordSensesLayer, getWordSplittingLayer, setAntonymyLayer, setChunksLayer, setConstituentParsingLayer, setDependencyParsingLayer, setDiscourseConnectivesLayer, setGeoLayer, setHyperonymyLayer, setHyponymyLayer, setLemmasLayer, setMatchesLayer, setMorphologyLayer, setNamedEntitiesLayer, setOrthographyLayer, setPhoneticsLayer, setPosTagsLayer, setReferencesLayer, setRelationsLayer, setSentencesLayer, setSynonymyLayer, setTextLayer, setTextSourceLayer, setTextStructureLayer, setTokensLayer, setWordSensesLayer, setWordSplittingLayer, toStringpublic TextCorpusStreamed(InputStream inputStream, EnumSet<TextCorpusLayerTag> layersToRead) throws WLFormatException
inputStream - the underlying input stream with linguistic
annotations in TCF format.layersToRead - the annotation layers of TextCorpus that
should be read into this TextCorpusStreamed.WLFormatException - if an error in input format or an I/O error
occurs.public TextCorpusStreamed(InputStream inputStream, EnumSet<TextCorpusLayerTag> layersToRead, OutputStream outputStream) throws WLFormatException
inputStream - the underlying input stream with linguistic
annotations in TCF format.layersToRead - the annotation layers of TextCorpus that
should be read into this TextCorpusStreamed.outputStream - the underlying output stream into which the
annotations from the input stream and any new created annotations will be
written (in TCF format).WLFormatException - if an error in input format or an I/O error
occurs.public TextCorpusStreamed(InputStream inputStream, EnumSet<TextCorpusLayerTag> layersToRead, OutputStream outputStream, boolean outputAsXmlFragment) throws WLFormatException
inputStream - the underlying input stream with linguistic
annotations in TCF format.layersToRead - the annotation layers of TextCorpus that
should be read into this TextCorpusStreamed.outputStream - the underlying output stream into which the
annotations from the input stream and any new created annotations will be
written (in TCF format).outputAsXmlFragment - true if the output should not contain xml
headers, false otherwise.WLFormatException - if an error in input format or an I/O error
occurs.public TextCorpusStreamed(InputStream inputStream, EnumSet<TextCorpusLayerTag> layersToRead, OutputStream outputStream, List<MetaDataItem> metaDataToAdd) throws WLFormatException
inputStream - the underlying input stream with linguistic
annotations in TCF format.layersToRead - the annotation layers of TextCorpus that
should be read into this TextCorpusStreamed.outputStream - the underlying output stream into which the
annotations from the input stream and any new created annotations will be
written (in TCF format).metaDataToAdd - meta data to be added to the output TCF.WLFormatException - if an error in input format or an I/O error
occurs.public void close()
throws WLFormatException
close in interface Closeableclose in interface AutoCloseableWLFormatException - if an error in input format or an I/O error
occurs.Copyright © 2013-2019 Department of Linguistics, Tübingen University. All Rights Reserved.