Uses of Interface
opennlp.tools.util.ObjectStream
-
Packages that use ObjectStream Package Description opennlp.tools.chunker Package related to finding non-recursive syntactic annotation such as noun phrase chunks.opennlp.tools.cmdline.namefind opennlp.tools.cmdline.parser opennlp.tools.doccat Package for classifying a document into a category.opennlp.tools.formats Experimental package related to converting various corpora to OpenNLP Format.opennlp.tools.formats.ad Experimental package related to theArvores Deitadas corpusformat.opennlp.tools.formats.brat Experimental package related to the corpus format used by the "brat rapid annotation tool" (brat).opennlp.tools.formats.conllu Experimental package related to the CoNNL-U format.opennlp.tools.formats.convert opennlp.tools.formats.frenchtreebank Experimental package related to the French Treebank format.opennlp.tools.formats.irishsentencebank Experimental package related to the Irish Sentence Bank format.opennlp.tools.formats.leipzig Experimental package related to theLeipzigcorpus format.opennlp.tools.formats.letsmt Experimental package related to theletsmtcorpus format.opennlp.tools.formats.masc Experimental package related to theMASCcorpus format.opennlp.tools.formats.moses opennlp.tools.formats.muc Experimental package related to theMUCcorpus format.opennlp.tools.formats.nkjp Experimental package related to the National corpus of PolishNKJPformat.opennlp.tools.formats.ontonotes Experimental package related to the OntoNotes 4.0 format.opennlp.tools.langdetect Package related to predicting languages from samples of text.opennlp.tools.lemmatizer Package related to the lemmatizer functionality.opennlp.tools.ml Package related to Machine Learning (ML) features of OpenNLP, the related ML models, and trainers.opennlp.tools.ml.maxent Package related to ML by means of the Maximum Entropy (ME) algorithm.opennlp.tools.ml.model Package related to ML models and feature selection techniques.opennlp.tools.namefind Package related to finding proper names and numeric amounts.opennlp.tools.parser Package containing common code for performing full syntactic parsing.opennlp.tools.parser.chunking Package containing code for performing full syntactic parsing using shift/reduce-style decisions.opennlp.tools.parser.treeinsert Package containing experimental code for performing full syntactic parsing using attachment decisions.opennlp.tools.postag Package related to part-of-speech tagging.opennlp.tools.sentdetect Package related to identifying sentence boundaries.opennlp.tools.tokenize Contains classes related to finding token or words in a string.opennlp.tools.util Package containing utility data structures and algorithms used by multiple other packages.opennlp.tools.util.eval -
-
Uses of ObjectStream in opennlp.tools.chunker
Classes in opennlp.tools.chunker that implement ObjectStream Modifier and Type Class Description classChunkerEventStreamClass for creating an event stream out of data files for training aChunker.classChunkSampleSequenceStreamASequenceStreamimplementation encapsulatingsamples.classChunkSampleStreamParses the conll 2000 shared task shallow parser training data.Methods in opennlp.tools.chunker with parameters of type ObjectStream Modifier and Type Method Description voidChunkerCrossValidator. evaluate(ObjectStream<ChunkSample> samples, int nFolds)Starts the evaluation.static ChunkerModelChunkerME. train(String lang, ObjectStream<ChunkSample> in, TrainingParameters mlParams, ChunkerFactory factory)Starts a training of aChunkerModelwith the given parameters.Constructors in opennlp.tools.chunker with parameters of type ObjectStream Constructor Description ChunkerEventStream(ObjectStream<ChunkSample> d, ChunkerContextGenerator cg)Creates a new event stream based on the specified data stream using the given context generator.ChunkSampleSequenceStream(ObjectStream<ChunkSample> samples, ChunkerContextGenerator generator)ChunkSampleStream(ObjectStream<String> samples)Initializes ainstance. -
Uses of ObjectStream in opennlp.tools.cmdline.namefind
Classes in opennlp.tools.cmdline.namefind that implement ObjectStream Modifier and Type Class Description classNameSampleCountersStreamCounts tokens, sentences and names by type.Methods in opennlp.tools.cmdline.namefind with parameters of type ObjectStream Modifier and Type Method Description static DictionaryCensusDictionaryCreatorTool. createDictionary(ObjectStream<StringList> sampleStream)Creates a dictionary.Constructors in opennlp.tools.cmdline.namefind with parameters of type ObjectStream Constructor Description NameSampleCountersStream(ObjectStream<NameSample> samples) -
Uses of ObjectStream in opennlp.tools.cmdline.parser
Methods in opennlp.tools.cmdline.parser with parameters of type ObjectStream Modifier and Type Method Description protected ParserModelBuildModelUpdaterTool. trainAndUpdate(ParserModel originalModel, ObjectStream<Parse> parseSamples, opennlp.tools.cmdline.parser.ModelUpdaterTool.ModelUpdaterParams parameters)protected ParserModelCheckModelUpdaterTool. trainAndUpdate(ParserModel originalModel, ObjectStream<Parse> parseSamples, opennlp.tools.cmdline.parser.ModelUpdaterTool.ModelUpdaterParams parameters) -
Uses of ObjectStream in opennlp.tools.doccat
Classes in opennlp.tools.doccat that implement ObjectStream Modifier and Type Class Description classDocumentCategorizerEventStreamIterator-like class for modeling document classification events.classDocumentSampleStreamReads in string encoded training samples, parses them and outputsDocumentSampleobjects.Methods in opennlp.tools.doccat with parameters of type ObjectStream Modifier and Type Method Description voidDoccatCrossValidator. evaluate(ObjectStream<DocumentSample> samples, int nFolds)Starts the evaluation.static DoccatModelDocumentCategorizerME. train(String lang, ObjectStream<DocumentSample> samples, TrainingParameters mlParams, DoccatFactory factory)Starts a training of aDoccatModelwith the given parameters.Constructors in opennlp.tools.doccat with parameters of type ObjectStream Constructor Description DocumentCategorizerEventStream(ObjectStream<DocumentSample> samples)Initializes aDocumentCategorizerEventStreamvia samples.DocumentCategorizerEventStream(ObjectStream<DocumentSample> samples, FeatureGenerator... featureGenerators)Initializes aDocumentCategorizerEventStreamvia samples andfeature generators.DocumentSampleStream(ObjectStream<String> samples)Initializes ainstance. -
Uses of ObjectStream in opennlp.tools.formats
Classes in opennlp.tools.formats that implement ObjectStream Modifier and Type Class Description classBioNLP2004NameSampleStreamAsample streamfor the training files of the BioNLP/NLPBA 2004 shared task.classConll02NameSampleStreamParser for the Dutch and Spanish ner training files of the CONLL 2002 shared task.classConll03NameSampleStreamAn import stream which can parse the CONLL03 data.classConllXPOSSampleStreamParses the data from the CONLL 06 shared task into POS Samples.classDirectorySampleStreamThe directory sample stream allows for creating anObjectStreamfrom a directory listing of files.classEvalitaNameSampleStreamParser for the Italian NER training files of the Evalita 2007 and 2009 NER shared tasks.classNameFinderCensus90NameStreamThis class helps to read the US Census data from the files to build a StringList for each dictionary entry in the name-finder dictionary.classTwentyNewsgroupSampleStreamMethods in opennlp.tools.formats that return ObjectStream Modifier and Type Method Description ObjectStream<NameSample>BioNLP2004NameSampleStreamFactory. create(String[] args)ObjectStream<ChunkSample>ChunkerSampleStreamFactory. create(String[] args)ObjectStream<NameSample>Conll02NameSampleStreamFactory. create(String[] args)ObjectStream<NameSample>Conll03NameSampleStreamFactory. create(String[] args)ObjectStream<POSSample>ConllXPOSSampleStreamFactory. create(String[] args)ObjectStream<SentenceSample>ConllXSentenceSampleStreamFactory. create(String[] args)ObjectStream<TokenSample>ConllXTokenSampleStreamFactory. create(String[] args)ObjectStream<DocumentSample>DocumentSampleStreamFactory. create(String[] args)ObjectStream<NameSample>EvalitaNameSampleStreamFactory. create(String[] args)ObjectStream<LanguageSample>LanguageDetectorSampleStreamFactory. create(String[] args)ObjectStream<LemmaSample>LemmatizerSampleStreamFactory. create(String[] args)ObjectStream<NameSample>NameSampleDataStreamFactory. create(String[] args)ObjectStream<Parse>ParseSampleStreamFactory. create(String[] args)ObjectStream<SentenceSample>SentenceSampleStreamFactory. create(String[] args)ObjectStream<TokenSample>TokenSampleStreamFactory. create(String[] args)ObjectStream<DocumentSample>TwentyNewsgroupSampleStreamFactory. create(String[] args)ObjectStream<POSSample>WordTagSampleStreamFactory. create(String[] args)Constructors in opennlp.tools.formats with parameters of type ObjectStream Constructor Description Conll02NameSampleStream(Conll02NameSampleStream.LANGUAGE lang, ObjectStream<String> lineStream, int types)Initializes aConll02NameSampleStream.Conll03NameSampleStream(Conll03NameSampleStream.LANGUAGE lang, ObjectStream<String> lineStream, int types)Initializes aConll03NameSampleStream.ConllXPOSSampleStream(ObjectStream<String> lineStream)Initializes aConllXPOSSampleStream.EvalitaNameSampleStream(EvalitaNameSampleStream.LANGUAGE lang, ObjectStream<String> lineStream, int types)NameFinderCensus90NameStream(ObjectStream<String> lineStream)Initializes aNameFinderCensus90NameStreamviaObjectStream. -
Uses of ObjectStream in opennlp.tools.formats.ad
Classes in opennlp.tools.formats.ad that implement ObjectStream Modifier and Type Class Description classADChunkSampleStreamParser for Floresta Sita(c)tica Arvores Deitadas corpus, output to for the Portuguese Chunker training.classADNameSampleStreamParser for Floresta Sita(c)tica Arvores Deitadas corpus, output to for the Portuguese NER training.classADPOSSampleStreamNote: Do not use this class, internal use only!classADSentenceSampleStreamNote: Do not use this class, internal use only!classADSentenceStreamStream filter which merges text lines into sentences, following the Arvores Deitadas syntax.Fields in opennlp.tools.formats.ad declared as ObjectStream Modifier and Type Field Description protected ObjectStream<ADSentenceStream.Sentence>ADChunkSampleStream. adSentenceStreamMethods in opennlp.tools.formats.ad that return ObjectStream Modifier and Type Method Description ObjectStream<ChunkSample>ADChunkSampleStreamFactory. create(String[] args)ObjectStream<NameSample>ADNameSampleStreamFactory. create(String[] args)ObjectStream<POSSample>ADPOSSampleStreamFactory. create(String[] args)ObjectStream<SentenceSample>ADSentenceSampleStreamFactory. create(String[] args)ObjectStream<TokenSample>ADTokenSampleStreamFactory. create(String[] args)Constructors in opennlp.tools.formats.ad with parameters of type ObjectStream Constructor Description ADChunkSampleStream(ObjectStream<String> lineStream)Instantiates aADChunkSampleStreamstream fromObjectStream, that could be aPlainTextByLineStreamobject.ADNameSampleStream(ObjectStream<String> lineStream, boolean splitHyphenatedTokens)Initializes a newADNameSampleStreamstream from aObjectStream, that could be aPlainTextByLineStreamobject.ADPOSSampleStream(ObjectStream<String> lineStream, boolean expandME, boolean includeFeatures)Creates a newADPOSSampleStreamstream from aObjectStream, that could be aPlainTextByLineStreamobject.ADSentenceSampleStream(ObjectStream<String> lineStream, boolean includeHeadlines)Initializes a newADSentenceSampleStreamfrom aObjectStream, that could be aPlainTextByLineStreamobject.ADSentenceStream(ObjectStream<String> lineStream) -
Uses of ObjectStream in opennlp.tools.formats.brat
Classes in opennlp.tools.formats.brat that implement ObjectStream Modifier and Type Class Description classBratAnnotationStreamReads the annotations from the brat.annannotation file.classBratDocumentStreamclassBratNameSampleStreamGenerates Name Sample objects for a Brat Document object.classSegmenterObjectStream<S,T>Methods in opennlp.tools.formats.brat that return ObjectStream Modifier and Type Method Description ObjectStream<NameSample>BratNameSampleStreamFactory. create(String[] args)Constructors in opennlp.tools.formats.brat with parameters of type ObjectStream Constructor Description BratNameSampleStream(SentenceDetector sentDetector, Tokenizer tokenizer, ObjectStream<BratDocument> samples)Creates a newBratNameSampleStream.BratNameSampleStream(SentenceDetector sentDetector, Tokenizer tokenizer, ObjectStream<BratDocument> samples, Set<String> nameTypes)Creates a newBratNameSampleStream.BratNameSampleStream(SentenceModel sentModel, TokenizerModel tokenModel, ObjectStream<BratDocument> samples)Creates a newBratNameSampleStream.BratNameSampleStream(SentenceModel sentModel, TokenizerModel tokenModel, ObjectStream<BratDocument> samples, Set<String> nameTypes)Creates a newBratNameSampleStream.SegmenterObjectStream(ObjectStream<S> in) -
Uses of ObjectStream in opennlp.tools.formats.conllu
Classes in opennlp.tools.formats.conllu that implement ObjectStream Modifier and Type Class Description classConlluLemmaSampleStreamclassConlluPOSSampleStreamclassConlluSentenceSampleStreamclassConlluStreamThe CoNNL-U Format is specified here.classConlluTokenSampleStreamMethods in opennlp.tools.formats.conllu that return ObjectStream Modifier and Type Method Description ObjectStream<LemmaSample>ConlluLemmaSampleStreamFactory. create(String[] args)ObjectStream<POSSample>ConlluPOSSampleStreamFactory. create(String[] args)ObjectStream<SentenceSample>ConlluSentenceSampleStreamFactory. create(String[] args)ObjectStream<TokenSample>ConlluTokenSampleStreamFactory. create(String[] args)Constructors in opennlp.tools.formats.conllu with parameters of type ObjectStream Constructor Description ConlluLemmaSampleStream(ObjectStream<ConlluSentence> samples, ConlluTagset tagset)Initializes aConlluLemmaSampleStream.ConlluPOSSampleStream(ObjectStream<ConlluSentence> samples, ConlluTagset tagset)Initializes aConlluPOSSampleStream.ConlluSentenceSampleStream(ObjectStream<ConlluSentence> samples, int sentencesPerSample)Initializes aConlluSentenceSampleStream.ConlluTokenSampleStream(ObjectStream<ConlluSentence> samples)Initializes aConlluTokenSampleStream. -
Uses of ObjectStream in opennlp.tools.formats.convert
Classes in opennlp.tools.formats.convert that implement ObjectStream Modifier and Type Class Description classAbstractToSentenceSampleStream<T>classFileToByteArraySampleStreamNote: Do not use this class, internal use only!classFileToStringSampleStreamProvides the ability to read the contents of files contained in an object stream of files.classNameToSentenceSampleStreamNote: Do not use this class, internal use only!classNameToTokenSampleStreamNote: Do not use this class, internal use only!classParseToPOSSampleStreamNote: Do not use this class, internal use only!classPOSToSentenceSampleStreamNote: Do not use this class, internal use only!classPOSToTokenSampleStreamNote: Do not use this class, internal use only!Methods in opennlp.tools.formats.convert that return ObjectStream Modifier and Type Method Description ObjectStream<SentenceSample>NameToSentenceSampleStreamFactory. create(String[] args)ObjectStream<TokenSample>NameToTokenSampleStreamFactory. create(String[] args)ObjectStream<POSSample>ParseToPOSSampleStreamFactory. create(String[] args)ObjectStream<SentenceSample>ParseToSentenceSampleStreamFactory. create(String[] args)ObjectStream<TokenSample>ParseToTokenSampleStreamFactory. create(String[] args)ObjectStream<SentenceSample>POSToSentenceSampleStreamFactory. create(String[] args)ObjectStream<TokenSample>POSToTokenSampleStreamFactory. create(String[] args)Constructors in opennlp.tools.formats.convert with parameters of type ObjectStream Constructor Description FileToByteArraySampleStream(ObjectStream<File> samples)Initializes aFileToByteArraySampleStream.FileToStringSampleStream(ObjectStream<File> samples, Charset encoding)Initializes aFileToStringSampleStream.NameToSentenceSampleStream(Detokenizer detokenizer, ObjectStream<NameSample> samples, int chunkSize)Initializes aNameToSentenceSampleStream.NameToTokenSampleStream(Detokenizer detokenizer, ObjectStream<NameSample> samples)Initializes aNameToTokenSampleStream.ParseToPOSSampleStream(ObjectStream<Parse> samples)Initializes aParseToPOSSampleStream.POSToSentenceSampleStream(Detokenizer detokenizer, ObjectStream<POSSample> samples, int chunkSize)Initializes aPOSToSentenceSampleStream.POSToTokenSampleStream(Detokenizer detokenizer, ObjectStream<POSSample> samples)Initializes aPOSToTokenSampleStream. -
Uses of ObjectStream in opennlp.tools.formats.frenchtreebank
Classes in opennlp.tools.formats.frenchtreebank that implement ObjectStream Modifier and Type Class Description classConstitParseSampleStreamMethods in opennlp.tools.formats.frenchtreebank that return ObjectStream Modifier and Type Method Description ObjectStream<Parse>ConstitParseSampleStreamFactory. create(String[] args)Constructors in opennlp.tools.formats.frenchtreebank with parameters of type ObjectStream Constructor Description ConstitParseSampleStream(ObjectStream<byte[]> samples)Initializes aConstitParseSampleStream. -
Uses of ObjectStream in opennlp.tools.formats.irishsentencebank
Methods in opennlp.tools.formats.irishsentencebank that return ObjectStream Modifier and Type Method Description ObjectStream<SentenceSample>IrishSentenceBankSentenceStreamFactory. create(String[] args)ObjectStream<TokenSample>IrishSentenceBankTokenSampleStreamFactory. create(String[] args) -
Uses of ObjectStream in opennlp.tools.formats.leipzig
Classes in opennlp.tools.formats.leipzig that implement ObjectStream Modifier and Type Class Description classLeipzigLanguageSampleStreamMethods in opennlp.tools.formats.leipzig that return ObjectStream Modifier and Type Method Description ObjectStream<LanguageSample>LeipzigLanguageSampleStreamFactory. create(String[] args) -
Uses of ObjectStream in opennlp.tools.formats.letsmt
Classes in opennlp.tools.formats.letsmt that implement ObjectStream Modifier and Type Class Description classDetokenizeSentenceSampleStreamMethods in opennlp.tools.formats.letsmt that return ObjectStream Modifier and Type Method Description ObjectStream<SentenceSample>LetsmtSentenceStreamFactory. create(String[] args)Constructors in opennlp.tools.formats.letsmt with parameters of type ObjectStream Constructor Description DetokenizeSentenceSampleStream(Detokenizer detokenizer, ObjectStream<SentenceSample> samples)Initializes aDetokenizeSentenceSampleStream. -
Uses of ObjectStream in opennlp.tools.formats.masc
Classes in opennlp.tools.formats.masc that implement ObjectStream Modifier and Type Class Description classMascDocumentStreamclassMascNamedEntitySampleStreamclassMascPOSSampleStreamclassMascSentenceSampleStreamclassMascTokenSampleStreamMethods in opennlp.tools.formats.masc that return ObjectStream Modifier and Type Method Description ObjectStream<NameSample>MascNamedEntitySampleStreamFactory. create(String[] args)ObjectStream<POSSample>MascPOSSampleStreamFactory. create(String[] args)ObjectStream<SentenceSample>MascSentenceSampleStreamFactory. create(String[] args)ObjectStream<TokenSample>MascTokenSampleStreamFactory. create(String[] args)Constructors in opennlp.tools.formats.masc with parameters of type ObjectStream Constructor Description MascNamedEntitySampleStream(ObjectStream<MascDocument> samples)InitializesMascNamedEntitySampleStreamfrom a stream ofdocuments.MascPOSSampleStream(ObjectStream<MascDocument> samples)InitializesMascPOSSampleStreamfrom a stream ofdocuments.MascSentenceSampleStream(ObjectStream<MascDocument> samples, int sentencesPerSample)MascTokenSampleStream(ObjectStream<MascDocument> samples)Initializes aMascTokenSampleStream. -
Uses of ObjectStream in opennlp.tools.formats.moses
Classes in opennlp.tools.formats.moses that implement ObjectStream Modifier and Type Class Description classMosesSentenceSampleStreamMethods in opennlp.tools.formats.moses that return ObjectStream Modifier and Type Method Description ObjectStream<SentenceSample>MosesSentenceSampleStreamFactory. create(String[] args)Constructors in opennlp.tools.formats.moses with parameters of type ObjectStream Constructor Description MosesSentenceSampleStream(ObjectStream<String> sentences)Initializes aMosesSentenceSampleStream. -
Uses of ObjectStream in opennlp.tools.formats.muc
Classes in opennlp.tools.formats.muc that implement ObjectStream Modifier and Type Class Description classMucNameSampleStreamMethods in opennlp.tools.formats.muc that return ObjectStream Modifier and Type Method Description ObjectStream<NameSample>Muc6NameSampleStreamFactory. create(String[] args)Constructors in opennlp.tools.formats.muc with parameters of type ObjectStream Constructor Description MucNameSampleStream(Tokenizer tokenizer, ObjectStream<String> samples)Initializes aMucNameSampleStream. -
Uses of ObjectStream in opennlp.tools.formats.nkjp
Classes in opennlp.tools.formats.nkjp that implement ObjectStream Modifier and Type Class Description classNKJPSentenceSampleStreamMethods in opennlp.tools.formats.nkjp that return ObjectStream Modifier and Type Method Description ObjectStream<SentenceSample>NKJPSentenceSampleStreamFactory. create(String[] args) -
Uses of ObjectStream in opennlp.tools.formats.ontonotes
Classes in opennlp.tools.formats.ontonotes that implement ObjectStream Modifier and Type Class Description classDocumentToLineStreamReads a plain text file and return each line as aStringobject.classOntoNotesNameSampleStreamName Sample Stream parser for the OntoNotes 4.0 corpus.classOntoNotesParseSampleStreamMethods in opennlp.tools.formats.ontonotes that return ObjectStream Modifier and Type Method Description ObjectStream<NameSample>OntoNotesNameSampleStreamFactory. create(String[] args)ObjectStream<Parse>OntoNotesParseSampleStreamFactory. create(String[] args)ObjectStream<POSSample>OntoNotesPOSSampleStreamFactory. create(String[] args)Constructors in opennlp.tools.formats.ontonotes with parameters of type ObjectStream Constructor Description DocumentToLineStream(ObjectStream<String> samples)Initializes aDocumentToLineStream.OntoNotesNameSampleStream(ObjectStream<String> samples)Initializes aOntoNotesNameSampleStream.OntoNotesParseSampleStream(ObjectStream<String> samples)Initializes aOntoNotesParseSampleStream. -
Uses of ObjectStream in opennlp.tools.langdetect
Classes in opennlp.tools.langdetect that implement ObjectStream Modifier and Type Class Description classLanguageDetectorEventStreamIterator-like class for modeling an event stream ofsamples.classLanguageDetectorSampleStreamThis class reads in string encodedtraining samples, parses them and outputsLanguageSampleobjects.Methods in opennlp.tools.langdetect with parameters of type ObjectStream Modifier and Type Method Description voidLanguageDetectorCrossValidator. evaluate(ObjectStream<LanguageSample> samples, int nFolds)Starts the evaluation.static LanguageDetectorModelLanguageDetectorME. train(ObjectStream<LanguageSample> samples, TrainingParameters mlParams, LanguageDetectorFactory factory)Starts a training of aLanguageDetectorModelwith the given parameters.Constructors in opennlp.tools.langdetect with parameters of type ObjectStream Constructor Description LanguageDetectorEventStream(ObjectStream<LanguageSample> data, LanguageDetectorContextGenerator cg)Initializes an instance via samples and feature generators.LanguageDetectorSampleStream(ObjectStream<String> samples)Initializes ainstance. -
Uses of ObjectStream in opennlp.tools.lemmatizer
Classes in opennlp.tools.lemmatizer that implement ObjectStream Modifier and Type Class Description classLemmaSampleEventStreamClass for creating an event stream out of data files for training a probabilisticLemmatizer.classLemmaSampleSequenceStreamASequenceStreamimplementation encapsulatingsamples.classLemmaSampleStreamReads data for training and testing theLemmatizer.Methods in opennlp.tools.lemmatizer with parameters of type ObjectStream Modifier and Type Method Description static LemmatizerModelLemmatizerME. train(String languageCode, ObjectStream<LemmaSample> samples, TrainingParameters params, LemmatizerFactory factory)Starts a training of aLemmatizerModelwith the given parameters.Constructors in opennlp.tools.lemmatizer with parameters of type ObjectStream Constructor Description LemmaSampleEventStream(ObjectStream<LemmaSample> d, LemmatizerContextGenerator cg)Creates a new event stream based on the specified data stream using aLemmatizerContextGenerator.LemmaSampleSequenceStream(ObjectStream<LemmaSample> samples, LemmatizerContextGenerator contextGenerator)LemmaSampleStream(ObjectStream<String> samples)Initializes ainstance. -
Uses of ObjectStream in opennlp.tools.ml
Methods in opennlp.tools.ml with parameters of type ObjectStream Modifier and Type Method Description DataIndexerAbstractEventTrainer. getDataIndexer(ObjectStream<Event> events)MaxentModelAbstractEventTrainer. train(ObjectStream<Event> events)MaxentModelEventTrainer. train(ObjectStream<Event> events)Trains aMaxentModelfor givenevents. -
Uses of ObjectStream in opennlp.tools.ml.maxent
Classes in opennlp.tools.ml.maxent that implement ObjectStream Modifier and Type Class Description classRealBasicEventStreamClass for real-valuedeventsas anevent stream.Methods in opennlp.tools.ml.maxent with parameters of type ObjectStream Modifier and Type Method Description GISModelGISTrainer. trainModel(ObjectStream<Event> eventStream)Trains a model using the GIS algorithm, assuming 100 iterations and no cutoff.GISModelGISTrainer. trainModel(ObjectStream<Event> eventStream, int iterations, int cutoff)Trains a GIS model on the event in the specified event stream, using the specified number of iterations and the specified count cutoff.Constructors in opennlp.tools.ml.maxent with parameters of type ObjectStream Constructor Description RealBasicEventStream(ObjectStream<String> ds) -
Uses of ObjectStream in opennlp.tools.ml.model
Subinterfaces of ObjectStream in opennlp.tools.ml.model Modifier and Type Interface Description interfaceSequenceStream<S>Interface for streams ofsequencesused to train sequence models.Classes in opennlp.tools.ml.model that implement ObjectStream Modifier and Type Class Description classFileEventStreamClass for using a file ofeventsas anevent stream.classHashSumEventStreamA hash sum basedAbstractObjectStreamimplementation.classRealValueFileEventStreamClass for using a file of real-valuedeventsas anevent stream.classSequenceStreamEventStreamClass which turns aSequenceStreaminto an event stream.Methods in opennlp.tools.ml.model with parameters of type ObjectStream Modifier and Type Method Description protected List<ComparableEvent>AbstractDataIndexer. index(ObjectStream<Event> events, Map<String,Integer> predicateIndex)Performs the data indexing.voidDataIndexer. index(ObjectStream<Event> eventStream)Performs the data indexing.voidOnePassDataIndexer. index(ObjectStream<Event> eventStream)Performs the data indexing.voidTwoPassDataIndexer. index(ObjectStream<Event> eventStream)Performs the data indexing.Constructors in opennlp.tools.ml.model with parameters of type ObjectStream Constructor Description HashSumEventStream(ObjectStream<Event> eventStream) -
Uses of ObjectStream in opennlp.tools.namefind
Classes in opennlp.tools.namefind that implement ObjectStream Modifier and Type Class Description classNameFinderEventStreamClass for creating an event stream out of data files for training anTokenNameFinder.classNameSampleDataStreamTheNameSampleDataStreamclass converts taggedstringsprovided by aDataStreamtoNameSampleobjects.classNameSampleSequenceStreamASequenceStreamimplementation encapsulatingsamples.classNameSampleTypeFilterAstreamwhich removesname sampleswhich do not have a certain type.Methods in opennlp.tools.namefind with parameters of type ObjectStream Modifier and Type Method Description voidTokenNameFinderCrossValidator. evaluate(ObjectStream<NameSample> samples, int nFolds)Starts the evaluation.static TokenNameFinderModelNameFinderME. train(String languageCode, String type, ObjectStream<NameSample> samples, TrainingParameters params, TokenNameFinderFactory factory)Starts a training of aTokenNameFinderModelwith the given parameters. -
Uses of ObjectStream in opennlp.tools.parser
Classes in opennlp.tools.parser that implement ObjectStream Modifier and Type Class Description classAbstractParserEventStreamAbstract class extended by parser event streams which perform tagging and chunking.classChunkSampleStreamclassParseSampleStreamclassPosSampleStreamMethods in opennlp.tools.parser with parameters of type ObjectStream Modifier and Type Method Description static DictionaryAbstractBottomUpParser. buildDictionary(ObjectStream<Parse> data, HeadRules rules, int cutoff)Creates a n-gramDictionaryfrom the specified data stream usingHeadRulesand specified cut-off.static DictionaryAbstractBottomUpParser. buildDictionary(ObjectStream<Parse> data, HeadRules rules, TrainingParameters params)Creates a n-gramDictionaryfrom the specified data stream using the specified head rule and specified cut-off.voidParserCrossValidator. evaluate(ObjectStream<Parse> samples, int nFolds)Starts the evaluation.Constructors in opennlp.tools.parser with parameters of type ObjectStream Constructor Description AbstractParserEventStream(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype)AbstractParserEventStream(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype, Dictionary dict)ChunkSampleStream(ObjectStream<Parse> in)Initializes ainstance.ParseSampleStream(ObjectStream<String> in)Initializes ainstance.PosSampleStream(ObjectStream<Parse> in)Initializes ainstance. -
Uses of ObjectStream in opennlp.tools.parser.chunking
Classes in opennlp.tools.parser.chunking that implement ObjectStream Modifier and Type Class Description classParserEventStreamWrapper class for one of fourshift-reduce parserevent streams.Methods in opennlp.tools.parser.chunking with parameters of type ObjectStream Modifier and Type Method Description static ParserModelParser. train(String languageCode, ObjectStream<Parse> parseSamples, HeadRules rules, TrainingParameters mlParams)Starts a training of aParserModel.Constructors in opennlp.tools.parser.chunking with parameters of type ObjectStream Constructor Description ParserEventStream(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype)ParserEventStream(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype, Dictionary dict) -
Uses of ObjectStream in opennlp.tools.parser.treeinsert
Classes in opennlp.tools.parser.treeinsert that implement ObjectStream Modifier and Type Class Description classParserEventStreamWrapper class for one of fourbuilt-attach parserevent streams.Methods in opennlp.tools.parser.treeinsert with parameters of type ObjectStream Modifier and Type Method Description static ParserModelParser. train(String languageCode, ObjectStream<Parse> parseSamples, HeadRules rules, int iterations, int cutoff)Starts a training of aParserModel.static ParserModelParser. train(String languageCode, ObjectStream<Parse> parseSamples, HeadRules rules, TrainingParameters mlParams)Starts a training of aParserModel.Constructors in opennlp.tools.parser.treeinsert with parameters of type ObjectStream Constructor Description ParserEventStream(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype)ParserEventStream(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype, Dictionary dict) -
Uses of ObjectStream in opennlp.tools.postag
Classes in opennlp.tools.postag that implement ObjectStream Modifier and Type Class Description classPOSSampleEventStreamclassPOSSampleSequenceStreamASequenceStreamimplementation encapsulatingsamples.classWordTagSampleStreamA stream filter which reads a sentence per line which contains words and tags inword_tagformat and outputs aPOSSampleobjects.Methods in opennlp.tools.postag with parameters of type ObjectStream Modifier and Type Method Description static DictionaryPOSTaggerME. buildNGramDictionary(ObjectStream<POSSample> samples, int cutoff)Constructs anGram dictionaryfrom anObjectStreamof samples.voidPOSTaggerCrossValidator. evaluate(ObjectStream<POSSample> samples, int nFolds)Starts the evaluation.static voidPOSTaggerME. populatePOSDictionary(ObjectStream<POSSample> samples, MutableTagDictionary dict, int cutoff)Populates aPOSDictionaryfrom anObjectStreamof samples.static POSModelPOSTaggerME. train(String languageCode, ObjectStream<POSSample> samples, TrainingParameters trainParams, POSTaggerFactory posFactory)Constructors in opennlp.tools.postag with parameters of type ObjectStream Constructor Description POSSampleEventStream(ObjectStream<POSSample> samples)Initializes the current instance with given samples and aDefaultPOSContextGenerator.POSSampleEventStream(ObjectStream<POSSample> samples, POSContextGenerator cg)Initializes the current instance with the given samples and aPOSContextGenerator.POSSampleSequenceStream(ObjectStream<POSSample> psi)POSSampleSequenceStream(ObjectStream<POSSample> psi, POSContextGenerator pcg)WordTagSampleStream(ObjectStream<String> sentences)Initializes aPOSSampleinstance. -
Uses of ObjectStream in opennlp.tools.sentdetect
Classes in opennlp.tools.sentdetect that implement ObjectStream Modifier and Type Class Description classEmptyLinePreprocessorStreamObjectStreamto clean up empty lines for empty line separated document streams.
- Skips empty line at training data start
- Transforms multiple empty lines in a row into one
- Replaces white space lines with empty lines
- TODO: Terminates last document with empty line if it is missing
This stream should be used by the components that mark empty lines to mark document boundaries.classSDEventStreamclassSentenceSampleStreamThis class is a stream filter which reads a sentence by line samples from anObjectStreamand converts them intoSentenceSampleobjects.Methods in opennlp.tools.sentdetect with parameters of type ObjectStream Modifier and Type Method Description voidSDCrossValidator. evaluate(ObjectStream<SentenceSample> samples, int nFolds)Starts the evaluation.static SentenceModelSentenceDetectorME. train(String languageCode, ObjectStream<SentenceSample> samples, boolean useTokenEnd, Dictionary abbreviations)Deprecated.static SentenceModelSentenceDetectorME. train(String languageCode, ObjectStream<SentenceSample> samples, boolean useTokenEnd, Dictionary abbreviations, TrainingParameters mlParams)Deprecated.static SentenceModelSentenceDetectorME. train(String languageCode, ObjectStream<SentenceSample> samples, SentenceDetectorFactory sdFactory, TrainingParameters mlParams)Constructors in opennlp.tools.sentdetect with parameters of type ObjectStream Constructor Description EmptyLinePreprocessorStream(ObjectStream<String> in)SDEventStream(ObjectStream<SentenceSample> samples, SDContextGenerator cg, EndOfSentenceScanner scanner)Initializes the current instance.SentenceSampleStream(ObjectStream<String> sentences) -
Uses of ObjectStream in opennlp.tools.tokenize
Classes in opennlp.tools.tokenize that implement ObjectStream Modifier and Type Class Description classTokenizerStreamclassTokenSampleStreamThis class is astream filterwhich reads in string encoded samples and createssamplesout of them.classTokSpanEventStreamclassWhitespaceTokenStreamThis stream formatsObjectStreamofsamplesinto whitespace separated token strings.Methods in opennlp.tools.tokenize with parameters of type ObjectStream Modifier and Type Method Description voidTokenizerCrossValidator. evaluate(ObjectStream<TokenSample> samples, int nFolds)Starts the evaluation.static TokenizerModelTokenizerME. train(ObjectStream<TokenSample> samples, TokenizerFactory factory, TrainingParameters mlParams)Trains a model for theTokenizerME.Constructors in opennlp.tools.tokenize with parameters of type ObjectStream Constructor Description TokenizerStream(Tokenizer tokenizer, ObjectStream<String> input)Initializes ainstance.TokenSampleStream(ObjectStream<String> sentences)Initializes ainstance.TokenSampleStream(ObjectStream<String> samples, String separatorChars)Initializes ainstance.TokSpanEventStream(ObjectStream<TokenSample> tokenSamples, boolean skipAlphaNumerics)Initializes a new event stream based on the data stream using aTokenContextGeneratorthat relies on aDefaultTokenContextGenerator.TokSpanEventStream(ObjectStream<TokenSample> tokenSamples, boolean skipAlphaNumerics, Pattern alphaNumeric, TokenContextGenerator cg)Initializes a new event stream based on the data stream using aTokenContextGenerator.TokSpanEventStream(ObjectStream<TokenSample> tokenSamples, boolean skipAlphaNumerics, TokenContextGenerator cg)Initializes a new event stream based on the data stream using aTokenContextGenerator.WhitespaceTokenStream(ObjectStream<TokenSample> tokens)Initializes aWhitespaceTokenStream. -
Uses of ObjectStream in opennlp.tools.util
Classes in opennlp.tools.util that implement ObjectStream Modifier and Type Class Description classAbstractEventStream<T>A baseObjectStreamimplementation for events.classAbstractObjectStream<T>A baseObjectStreamimplementation.classCollectionObjectStream<E>AnObjectStreamimplementation that works on aCollectionofCollectionObjectStreamas source for elements.classEventTraceStreamclassFilterObjectStream<S,T>Abstract base class for filteringstreams.classParagraphStreamAFilterObjectStreamwhich merges text lines into paragraphs.classPlainTextByLineStreamReads a plain text file and returns each line as aStringobject.Fields in opennlp.tools.util declared as ObjectStream Modifier and Type Field Description protected ObjectStream<S>FilterObjectStream. samplesMethods in opennlp.tools.util that return ObjectStream Modifier and Type Method Description static <T> ObjectStream<T>ObjectStreamUtils. concatenateObjectStream(Collection<ObjectStream<T>> streams)Creates a single concatenatedObjectStreamfrom multiple individualstreamswith the same typeObjectStreamUtils.static <T> ObjectStream<T>ObjectStreamUtils. concatenateObjectStream(ObjectStream<T>... streams)Creates a single concatenatedObjectStreamfrom multiple individualstreamswith the same type.static <T> ObjectStream<T>ObjectStreamUtils. createObjectStream(Collection<T> collection)Creates anObjectStreamform aCollection.static <T> ObjectStream<T>ObjectStreamUtils. createObjectStream(T... array)Creates anObjectStreamform an array ofObjectStreamUtils.Methods in opennlp.tools.util with parameters of type ObjectStream Modifier and Type Method Description static <T> ObjectStream<T>ObjectStreamUtils. concatenateObjectStream(ObjectStream<T>... streams)Creates a single concatenatedObjectStreamfrom multiple individualstreamswith the same type.Method parameters in opennlp.tools.util with type arguments of type ObjectStream Modifier and Type Method Description static <T> ObjectStream<T>ObjectStreamUtils. concatenateObjectStream(Collection<ObjectStream<T>> streams)Creates a single concatenatedObjectStreamfrom multiple individualstreamswith the same typeObjectStreamUtils.Constructors in opennlp.tools.util with parameters of type ObjectStream Constructor Description AbstractEventStream(ObjectStream<T> samples)Initializes anAbstractEventStreamwith a sampleIterator.AbstractObjectStream(ObjectStream<T> stream)Initializes anAbstractObjectStream.EventTraceStream(ObjectStream<Event> stream, Writer writer)Initializes anEventTraceStream.FilterObjectStream(ObjectStream<S> samples)Initializes anFilterObjectStream.ParagraphStream(ObjectStream<String> lineStream)Initializes anFilterObjectStream. -
Uses of ObjectStream in opennlp.tools.util.eval
Classes in opennlp.tools.util.eval that implement ObjectStream Modifier and Type Class Description static classCrossValidationPartitioner.TrainingSampleStream<E>TheCrossValidationPartitioner.TrainingSampleStreamwhich iterates over all training elements.Methods in opennlp.tools.util.eval that return ObjectStream Modifier and Type Method Description ObjectStream<E>CrossValidationPartitioner.TrainingSampleStream. getTestSampleStream()Retrieves theObjectStreamover the test/evaluations elements and poisons thisCrossValidationPartitioner.TrainingSampleStream.Methods in opennlp.tools.util.eval with parameters of type ObjectStream Modifier and Type Method Description voidEvaluator. evaluate(ObjectStream<T> samples)Reads allsample objectsand evaluates each instance via theEvaluator.evaluateSample(Object)method.Constructors in opennlp.tools.util.eval with parameters of type ObjectStream Constructor Description CrossValidationPartitioner(ObjectStream<E> inElements, int numberOfPartitions)InitializesCrossValidationPartitionerinstance.
-