Uses of Interface
opennlp.tools.util.ObjectStream
Packages that use ObjectStream
Package
Description
Provides main functionality of the maxent package including data structures and
algorithms for parameter estimation.
-
Uses of ObjectStream in opennlp.tools.chunker
Classes in opennlp.tools.chunker that implement ObjectStreamModifier and TypeClassDescriptionclassClass for creating an event stream out of data files for training aChunker.classASequenceStreamimplementation encapsulatingsamples.classParses the conll 2000 shared task shallow parser training data.Fields in opennlp.tools.chunker declared as ObjectStreamModifier and TypeFieldDescriptionprivate final ObjectStream<ChunkSample> ChunkSampleSequenceStream.samplesMethods in opennlp.tools.chunker with parameters of type ObjectStreamModifier and TypeMethodDescriptionvoidChunkerCrossValidator.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 ObjectStreamModifierConstructorDescriptionCreates 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
Methods in opennlp.tools.cmdline that return ObjectStream -
Uses of ObjectStream in opennlp.tools.depparse
Classes in opennlp.tools.depparse that implement ObjectStreamModifier and TypeClassDescription(package private) classTurnssamplesinto trainingevents: for each sample theArcStandardOraclederives the gold transitions, and every transition becomes one event pairing the configuration features with the encoded transition.Fields in opennlp.tools.depparse declared as ObjectStreamModifier and TypeFieldDescriptionprivate final ObjectStream<DependencySample> DependencyEventStream.samplesMethods in opennlp.tools.depparse with parameters of type ObjectStreamModifier and TypeMethodDescriptionprivate static List<FeedforwardDependencyTrainer.Derivation> FeedforwardDependencyTrainer.derive(ObjectStream<DependencySample> samples) Reads a sample stream into memory and derives the oracle of every projective sample once; the trainer passes over the derivations repeatedly.voidDependencyCrossValidator.evaluate(ObjectStream<DependencySample> samples, int folds) Runs the cross validation and adds the scores of every fold to the totals.static FeedforwardDependencyModelFeedforwardDependencyTrainer.refine(FeedforwardDependencyModel model, ObjectStream<DependencySample> samples, TrainingParameters parameters) Refines a locally trained model with beam search and the early-update method of Collins and Roark (2004).static DependencyModelDependencyParserME.train(String languageCode, ObjectStream<DependencySample> samples, TrainingParameters parameters) Trains a greedy arc-standard parser model from dependency samples.static FeedforwardDependencyModelFeedforwardDependencyTrainer.train(String languageCode, ObjectStream<DependencySample> samples, TrainingParameters parameters) Trains a model from dependency samples.Constructors in opennlp.tools.depparse with parameters of type ObjectStreamModifierConstructorDescription(package private)DependencyEventStream(ObjectStream<DependencySample> samples, DependencyContextGenerator contextGenerator) Initializes the stream. -
Uses of ObjectStream in opennlp.tools.doccat
Classes in opennlp.tools.doccat that implement ObjectStreamModifier and TypeClassDescriptionclassIterator-like class for modeling document classification events.classReads in string encoded training samples, parses them and outputsDocumentSampleobjects.Methods in opennlp.tools.doccat with parameters of type ObjectStreamModifier and TypeMethodDescriptionvoidDoccatCrossValidator.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 ObjectStreamModifierConstructorDescriptionInitializes 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 ObjectStreamModifier and TypeClassDescriptionclassAsample streamfor the training files of the BioNLP/NLPBA 2004 shared task.classParser for the Dutch and Spanish ner training files of the CONLL 2002 shared task.classAn import stream which can parse the CONLL03 data.classParses the data from the CONLL 06 shared task into POS Samples.classThe directory sample stream allows for creating anObjectStream<File>from a directory listing of files.classParser for the Italian NER training files of the Evalita 2007 and 2009 NER shared tasks.classParser for the GermEval 2014 Named Entity Recognition Shared Task data.classThis class helps to read the US Census data from the files to build a StringList for each dictionary entry in the name-finder dictionary.classAnObjectStreamimplementation for the Twenty Newsgroups text corpus.Fields in opennlp.tools.formats declared as ObjectStreamModifier and TypeFieldDescriptionprivate final ObjectStream<String> BioNLP2004NameSampleStream.lineStreamprivate final ObjectStream<String> Conll02NameSampleStream.lineStreamprivate final ObjectStream<String> Conll03NameSampleStream.lineStreamprivate final ObjectStream<String> EvalitaNameSampleStream.lineStreamprivate final ObjectStream<String> GermEval2014NameSampleStream.lineStreamprivate final ObjectStream<String> NameFinderCensus90NameStream.lineStreamMethods in opennlp.tools.formats that return ObjectStreamModifier and TypeMethodDescriptionCreates a sentiment sample stream.protected <P extends BasicFormatParams>
ObjectStream<String> Creates anObjectStreamfor the specified arguments and the generic typeP.Constructors in opennlp.tools.formats with parameters of type ObjectStreamModifierConstructorDescriptionConll02NameSampleStream(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) GermEval2014NameSampleStream(ObjectStream<String> lineStream, int types, GermEval2014NameSampleStream.NerLayer layer) Initializes aGermEval2014NameSampleStream.NameFinderCensus90NameStream(ObjectStream<String> lineStream) Initializes aNameFinderCensus90NameStreamviaObjectStream<String>. -
Uses of ObjectStream in opennlp.tools.formats.ad
Classes in opennlp.tools.formats.ad that implement ObjectStreamModifier and TypeClassDescriptionclassParser for Floresta Sita(c)tica Arvores Deitadas corpus, output to for the Portuguese Chunker training.classParser for Floresta Sita(c)tica Arvores Deitadas corpus, output to for the Portuguese NER training.classNote: Do not use this class, internal use only!classNote: Do not use this class, internal use only!classStream filter which merges text lines into sentences, following the Arvores Deitadas syntax.Fields in opennlp.tools.formats.ad declared as ObjectStreamModifier and TypeFieldDescriptionprotected final ObjectStream<ADSentenceStream.Sentence> ADChunkSampleStream.adSentenceStreamprivate final ObjectStream<ADSentenceStream.Sentence> ADNameSampleStream.adSentenceStreamprivate final ObjectStream<ADSentenceStream.Sentence> ADPOSSampleStream.adSentenceStreamprivate final ObjectStream<ADSentenceStream.Sentence> ADSentenceSampleStream.adSentenceStreamMethods in opennlp.tools.formats.ad that return ObjectStreamModifier and TypeMethodDescriptionConstructors in opennlp.tools.formats.ad with parameters of type ObjectStreamModifierConstructorDescriptionADChunkSampleStream(ObjectStream<String> lineStream) Instantiates aADChunkSampleStreamstream fromObjectStream<String>, that could be aPlainTextByLineStreamobject.ADNameSampleStream(ObjectStream<String> lineStream, boolean splitHyphenatedTokens) Initializes a newADNameSampleStreamstream from aObjectStream<String>, that could be aPlainTextByLineStreamobject.ADPOSSampleStream(ObjectStream<String> lineStream, boolean expandME, boolean includeFeatures) Creates a newADPOSSampleStreamstream from aObjectStream<String>, that could be aPlainTextByLineStreamobject.ADSentenceSampleStream(ObjectStream<String> lineStream, boolean includeHeadlines) Initializes a newADSentenceSampleStreamfrom aObjectStream<String>, that could be aPlainTextByLineStreamobject.ADSentenceStream(ObjectStream<String> lineStream) -
Uses of ObjectStream in opennlp.tools.formats.brat
Classes in opennlp.tools.formats.brat that implement ObjectStreamModifier and TypeClassDescriptionclassReads the annotations from the brat.annannotation file.classclassGenerates Name Sample objects for a Brat Document object.classMethods in opennlp.tools.formats.brat that return ObjectStreamModifier and TypeMethodDescriptionConstructors in opennlp.tools.formats.brat with parameters of type ObjectStreamModifierConstructorDescriptionBratNameSampleStream(SentenceDetector sentDetector, Tokenizer tokenizer, ObjectStream<BratDocument> samples) Initializes a newBratNameSampleStreamwith the specified parameters based on a straem ofdocuments.BratNameSampleStream(SentenceDetector sentDetector, Tokenizer tokenizer, ObjectStream<BratDocument> samples, Set<String> nameTypes) Creates a newBratNameSampleStream.BratNameSampleStream(SentenceModel sentModel, TokenizerModel tokenModel, ObjectStream<BratDocument> samples) Initializes a newBratNameSampleStreamwith the specified (model) parameters.BratNameSampleStream(SentenceModel sentModel, TokenizerModel tokenModel, ObjectStream<BratDocument> samples, Set<String> nameTypes) Creates a newBratNameSampleStream. -
Uses of ObjectStream in opennlp.tools.formats.conllu
Classes in opennlp.tools.formats.conllu that implement ObjectStreamModifier and TypeClassDescriptionclassclassclassclassclassThe CoNNL-U Format is specified here.classFields in opennlp.tools.formats.conllu declared as ObjectStreamMethods in opennlp.tools.formats.conllu that return ObjectStreamConstructors in opennlp.tools.formats.conllu with parameters of type ObjectStreamModifierConstructorDescriptionConlluLemmaSampleStream(ObjectStream<ConlluSentence> samples, ConlluTagset tagset) Initializes aConlluLemmaSampleStream.ConlluPOSSampleStream(ObjectStream<ConlluSentence> samples, ConlluTagset tagset) Initializes aConlluPOSSampleStream.ConlluSentenceSampleStream(ObjectStream<ConlluSentence> samples, int sentencesPerSample) Initializes aConlluSentenceSampleStream.Initializes aConlluTokenSampleStream. -
Uses of ObjectStream in opennlp.tools.formats.convert
Classes in opennlp.tools.formats.convert that implement ObjectStreamModifier and TypeClassDescriptionclassclassNote: Do not use this class, internal use only!classProvides the ability to read the contents of files contained in an object stream of files.classNote: Do not use this class, internal use only!classNote: Do not use this class, internal use only!classNote: Do not use this class, internal use only!classNote: Do not use this class, internal use only!classNote: Do not use this class, internal use only!Methods in opennlp.tools.formats.convert that return ObjectStreamModifier and TypeMethodDescriptionConstructors in opennlp.tools.formats.convert with parameters of type ObjectStreamModifierConstructorDescription(package private)AbstractToSentenceSampleStream(Detokenizer detokenizer, ObjectStream<T> samples, int chunkSize) 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 ObjectStreamMethods in opennlp.tools.formats.frenchtreebank that return ObjectStreamModifier and TypeMethodDescriptionConstructors in opennlp.tools.formats.frenchtreebank with parameters of type ObjectStreamModifierConstructorDescriptionprotectedConstitParseSampleStream(ObjectStream<byte[]> samples) Initializes aConstitParseSampleStream. -
Uses of ObjectStream in opennlp.tools.formats.irishsentencebank
Classes in opennlp.tools.formats.irishsentencebank that implement ObjectStreamModifier and TypeClassDescription(package private) class(package private) classNote: Do not use this class, internal use only!Methods in opennlp.tools.formats.irishsentencebank that return ObjectStreamModifier and TypeMethodDescription -
Uses of ObjectStream in opennlp.tools.formats.leipzig
Classes in opennlp.tools.formats.leipzig that implement ObjectStreamModifier and TypeClassDescriptionclassprivate class(package private) classA specialization ofObjectStreamthat shuffles samples.(package private) classA specialization ofObjectStreamthat skips a number of samples.Fields in opennlp.tools.formats.leipzig declared as ObjectStreamModifier and TypeFieldDescriptionprivate final ObjectStream<T> SampleSkipStream.samplesprivate ObjectStream<LanguageSample> LeipzigLanguageSampleStream.sampleStreamMethods in opennlp.tools.formats.leipzig that return ObjectStreamModifier and TypeMethodDescriptionConstructors in opennlp.tools.formats.leipzig with parameters of type ObjectStreamModifierConstructorDescription(package private)SampleShuffleStream(ObjectStream<T> samples) Initializes aSampleShuffleStreamwith the specified parameters.(package private)SampleSkipStream(ObjectStream<T> samples, int samplesToSkip) Initializes aSampleSkipStreamwith the specified parameters. -
Uses of ObjectStream in opennlp.tools.formats.letsmt
Classes in opennlp.tools.formats.letsmt that implement ObjectStreamModifier and TypeClassDescriptionclass(package private) classMethods in opennlp.tools.formats.letsmt that return ObjectStreamModifier and TypeMethodDescriptionConstructors in opennlp.tools.formats.letsmt with parameters of type ObjectStreamModifierConstructorDescriptionDetokenizeSentenceSampleStream(Detokenizer detokenizer, ObjectStream<SentenceSample> samples) Initializes aDetokenizeSentenceSampleStream. -
Uses of ObjectStream in opennlp.tools.formats.masc
Classes in opennlp.tools.formats.masc that implement ObjectStreamModifier and TypeClassDescriptionclassclassclassclassclassMethods in opennlp.tools.formats.masc that return ObjectStreamModifier and TypeMethodDescriptionConstructors in opennlp.tools.formats.masc with parameters of type ObjectStreamModifierConstructorDescriptionInitializesMascNamedEntitySampleStreamfrom 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 ObjectStreamModifier and TypeClassDescriptionclassMoses is a statistical machine translation system that allows you to automatically train translation models for any language pair.Methods in opennlp.tools.formats.moses that return ObjectStreamModifier and TypeMethodDescriptionConstructors in opennlp.tools.formats.moses with parameters of type ObjectStreamModifierConstructorDescriptionMosesSentenceSampleStream(ObjectStream<String> sentences) Initializes aMosesSentenceSampleStream. -
Uses of ObjectStream in opennlp.tools.formats.muc
Classes in opennlp.tools.formats.muc that implement ObjectStreamModifier and TypeClassDescription(package private) classclassMethods in opennlp.tools.formats.muc that return ObjectStreamModifier and TypeMethodDescriptionConstructors in opennlp.tools.formats.muc with parameters of type ObjectStreamModifierConstructorDescription(package private)DocumentSplitterStream(ObjectStream<String> samples) protectedMucNameSampleStream(Tokenizer tokenizer, ObjectStream<String> samples) Initializes aMucNameSampleStream. -
Uses of ObjectStream in opennlp.tools.formats.nkjp
Classes in opennlp.tools.formats.nkjp that implement ObjectStreamMethods in opennlp.tools.formats.nkjp that return ObjectStreamModifier and TypeMethodDescription -
Uses of ObjectStream in opennlp.tools.formats.ontonotes
Classes in opennlp.tools.formats.ontonotes that implement ObjectStreamModifier and TypeClassDescriptionclassReads a plain text file and return each line as aStringobject.className Sample Stream parser for the OntoNotes 4.0 named entity files.classMethods in opennlp.tools.formats.ontonotes that return ObjectStreamModifier and TypeMethodDescriptionConstructors in opennlp.tools.formats.ontonotes with parameters of type ObjectStreamModifierConstructorDescriptionDocumentToLineStream(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 ObjectStreamModifier and TypeClassDescriptionclassIterator-like class for modeling an event stream ofsamples.classThis class reads in string encodedtraining samples, parses them and outputsLanguageSampleobjects.Methods in opennlp.tools.langdetect with parameters of type ObjectStreamModifier and TypeMethodDescriptionvoidLanguageDetectorCrossValidator.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 ObjectStreamModifierConstructorDescriptionInitializes 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 ObjectStreamModifier and TypeClassDescriptionclassClass for creating an event stream out of data files for training a probabilisticLemmatizer.classASequenceStreamimplementation encapsulatingsamples.classReads data for training and testing theLemmatizer.Fields in opennlp.tools.lemmatizer declared as ObjectStreamModifier and TypeFieldDescriptionprivate final ObjectStream<LemmaSample> LemmaSampleSequenceStream.samplesMethods in opennlp.tools.lemmatizer with parameters of type ObjectStreamModifier and TypeMethodDescriptionstatic 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 ObjectStreamModifierConstructorDescriptionCreates 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 ObjectStreamModifier and TypeMethodDescriptionAbstractEventTrainer.getDataIndexer(ObjectStream<Event> events) final MaxentModelAbstractEventTrainer.train(ObjectStream<Event> events) EventTrainer.train(ObjectStream<Event> events) Trains aMaxentModelfor givenevents. -
Uses of ObjectStream in opennlp.tools.ml.maxent
Classes in opennlp.tools.ml.maxent that implement ObjectStreamFields in opennlp.tools.ml.maxent declared as ObjectStreamMethods in opennlp.tools.ml.maxent with parameters of type ObjectStreamModifier and TypeMethodDescriptionGISTrainer.trainModel(ObjectStream<Event> eventStream) Trains a model using the GIS algorithm, assuming 100 iterations and no cutoff.GISTrainer.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 -
Uses of ObjectStream in opennlp.tools.ml.model
Subinterfaces of ObjectStream in opennlp.tools.ml.modelModifier and TypeInterfaceDescriptioninterfaceInterface for streams ofsequencesused to train sequence models.Classes in opennlp.tools.ml.model that implement ObjectStreamModifier and TypeClassDescriptionclassAChecksum-basedevent streamimplementation.classClass for using a file ofeventsas anevent stream.classClass for using a file of real-valuedeventsas anevent stream.classClass which turns aSequenceStreaminto an event stream.private static classMethods in opennlp.tools.ml.model that return ObjectStreamModifier and TypeMethodDescriptionSimpleEventStreamBuilder.build()Returns astreamover the events added so far.Methods in opennlp.tools.ml.model with parameters of type ObjectStreamModifier and TypeMethodDescriptionOnePassDataIndexer.computeEventCounts(ObjectStream<Event> eventStream, Map<String, Integer> predicatesInOut, int cutoff) Reads events from eventStream into a linked list.private intTwoPassDataIndexer.computeEventCounts(ObjectStream<Event> eventStream, DataOutputStream eventStore, Map<String, Integer> predicatesInOut, int cutoff) Reads events from eventStream into a linked list.protected List<ComparableEvent> 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 ObjectStreamModifierConstructorDescriptionChecksumEventStream(ObjectStream<Event> eventStream) Initializes anChecksumEventStream. -
Uses of ObjectStream in opennlp.tools.namefind
Classes in opennlp.tools.namefind that implement ObjectStreamModifier and TypeClassDescriptionclassClass for creating an event stream out of data files for training anTokenNameFinder.classTheNameSampleDataStreamclass converts tagged tokens provided by a DataStream toNameSampleobjects.classASequenceStreamimplementation encapsulatingsamples.classAstreamwhich removesname sampleswhich do not have a certain type.private static classSplitsdocument samplesintoname samples.private static classReadssamplesto group them as a document based on the clear adaptive data flag.Fields in opennlp.tools.namefind declared as ObjectStreamModifier and TypeFieldDescriptionprivate final ObjectStream<NameSample> NameSampleSequenceStream.psiMethods in opennlp.tools.namefind with parameters of type ObjectStreamModifier and TypeMethodDescriptionvoidTokenNameFinderCrossValidator.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.Constructors in opennlp.tools.namefind with parameters of type ObjectStreamModifierConstructorDescriptionprotectedNameFinderEventStream(ObjectStream<NameSample> dataStream, String type, NameContextGenerator contextGenerator, SequenceCodec<String> codec) Initializes aNameSampleDataStreamwith givenpsisamples.Initializes aNameSampleSequenceStreamwith givenpsisamples.NameSampleSequenceStream(ObjectStream<NameSample> psi, NameContextGenerator pcg, boolean useOutcomes) NameSampleSequenceStream(ObjectStream<NameSample> psi, NameContextGenerator pcg, boolean useOutcomes, SequenceCodec<String> seqCodec) NameSampleSequenceStream(ObjectStream<NameSample> psi, AdaptiveFeatureGenerator featureGen) NameSampleSequenceStream(ObjectStream<NameSample> psi, AdaptiveFeatureGenerator featureGen, boolean useOutcomes) NameSampleTypeFilter(String[] types, ObjectStream<NameSample> samples) Initializes aNameSampleTypeFilter.NameSampleTypeFilter(Set<String> types, ObjectStream<NameSample> samples) Initializes aNameSampleTypeFilter.protectedNameToDocumentSampleStream(ObjectStream<NameSample> samples) -
Uses of ObjectStream in opennlp.tools.parser
Classes in opennlp.tools.parser that implement ObjectStreamModifier and TypeClassDescriptionclassAbstract class extended by parser event streams which perform tagging and chunking.classclassclassMethods in opennlp.tools.parser with parameters of type ObjectStreamModifier and TypeMethodDescriptionstatic 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.Constructors in opennlp.tools.parser with parameters of type ObjectStreamModifierConstructorDescriptionAbstractParserEventStream(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype) AbstractParserEventStream(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype, Dictionary dict) Initializes ainstance.Initializes ainstance.Initializes ainstance. -
Uses of ObjectStream in opennlp.tools.parser.chunking
Classes in opennlp.tools.parser.chunking that implement ObjectStreamModifier and TypeClassDescriptionclassWrapper class for one of fourshift-reduce parserevent streams.Methods in opennlp.tools.parser.chunking with parameters of type ObjectStreamModifier and TypeMethodDescriptionstatic 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 ObjectStreamModifierConstructorDescriptionParserEventStream(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 ObjectStreamModifier and TypeClassDescriptionclassWrapper class for one of fourbuilt-attach parserevent streams.Methods in opennlp.tools.parser.treeinsert with parameters of type ObjectStreamModifier and TypeMethodDescriptionstatic 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 ObjectStreamModifierConstructorDescriptionParserEventStream(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 ObjectStreamModifier and TypeClassDescriptionclassclassASequenceStreamimplementation encapsulatingsamples.classAstream filterwhich reads a sentence per line that contains words and tags inword_tagformat and outputs aPOSSampleobjects.Fields in opennlp.tools.postag declared as ObjectStreamModifier and TypeFieldDescriptionprivate final ObjectStream<POSSample> POSSampleSequenceStream.psiMethods in opennlp.tools.postag with parameters of type ObjectStreamModifier and TypeMethodDescriptionstatic DictionaryPOSTaggerME.buildNGramDictionary(ObjectStream<POSSample> samples, int cutoff) Constructs annGram 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 mlParams, POSTaggerFactory posFactory) Starts a training of aPOSModelwith the given parameters.Constructors in opennlp.tools.postag with parameters of type ObjectStreamModifierConstructorDescriptionPOSSampleEventStream(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.WordTagSampleStream(ObjectStream<String> sentences) Initializes aPOSSampleinstance. -
Uses of ObjectStream in opennlp.tools.sentdetect
Classes in opennlp.tools.sentdetect that implement ObjectStreamModifier and TypeClassDescriptionclassObjectStreamto 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.classclassThis 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 ObjectStreamModifier and TypeMethodDescriptionvoidSDCrossValidator.evaluate(ObjectStream<SentenceSample> samples, int nFolds) Starts the evaluation.static SentenceModelSentenceDetectorME.train(String languageCode, ObjectStream<SentenceSample> samples, SentenceDetectorFactory sdFactory, TrainingParameters mlParams) Starts a training of aSentenceModelwith the given parameters.Constructors in opennlp.tools.sentdetect with parameters of type ObjectStreamModifierConstructorDescriptionSDEventStream(ObjectStream<SentenceSample> samples, SDContextGenerator cg, EndOfSentenceScanner scanner) Initializes the current instance.SentenceSampleStream(ObjectStream<String> sentences) -
Uses of ObjectStream in opennlp.tools.sentiment
Classes in opennlp.tools.sentiment that implement ObjectStreamModifier and TypeClassDescriptionprivate static classSplits DocumentSample into SentimentSamples.private static classReads Sentiment Samples to group them as a document based on the clear adaptive data flag.classClass for creating events for Sentiment Analysis that is later sent to MaxEnt.classClass for converting Strings through Data Stream toSentimentSampleusing tokenised text.classClass for creating a type filter.Methods in opennlp.tools.sentiment with parameters of type ObjectStreamModifier and TypeMethodDescriptionvoidSentimentCrossValidator.evaluate(ObjectStream<SentimentSample> samples, int nFolds) Performs evaluationstatic SentimentModelSentimentME.train(String languageCode, ObjectStream<SentimentSample> samples, TrainingParameters trainParams, SentimentFactory factory) Trains aSentiment Analysis model.Constructors in opennlp.tools.sentiment with parameters of type ObjectStreamModifierConstructorDescriptionprotectedConstructorSentimentEventStream(ObjectStream<SentimentSample> samples, SentimentContextGenerator createContextGenerator) Instantiates aevent stream.SentimentSampleStream(ObjectStream<String> samples) Instantiates aSentimentSampleStreamobject.SentimentSampleTypeFilter(String[] types, ObjectStream<SentimentSample> samples) ConstructorSentimentSampleTypeFilter(Set<String> types, ObjectStream<SentimentSample> samples) Instantiates aSentimentSampleTypeFilterobject.protectedConstructor -
Uses of ObjectStream in opennlp.tools.stopword
Classes in opennlp.tools.stopword that implement ObjectStreamModifier and TypeClassDescriptionfinal classAFilterObjectStreamwhich removes stopwords from eachString[]sample produced by an underlyingObjectStream<String[]>.Constructors in opennlp.tools.stopword with parameters of type ObjectStreamModifierConstructorDescriptionStopwordFilterStream(ObjectStream<String[]> samples, StopwordFilter filter) Initializes aStopwordFilterStream. -
Uses of ObjectStream in opennlp.tools.tokenize
Classes in opennlp.tools.tokenize that implement ObjectStreamModifier and TypeClassDescriptionclassclassThis class is astream filterwhich reads in string encoded samples and createssamplesout of them.classclassThis stream formatsObjectStreamofsamplesinto whitespace separated token strings.Fields in opennlp.tools.tokenize declared as ObjectStreamMethods in opennlp.tools.tokenize with parameters of type ObjectStreamModifier and TypeMethodDescriptionvoidTokenizerCrossValidator.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 ObjectStreamModifierConstructorDescriptionTokenizerStream(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) Deprecated, for removal: This API element is subject to removal in a future version.(package private)TokSpanEventStream(ObjectStream<TokenSample> tokenSamples, boolean skipAlphaNumerics, AlphanumericCheck alphanumeric, TokenContextGenerator cg) Initializes a new event stream with the check that decides which candidate tokens count as alphanumeric.TokSpanEventStream(ObjectStream<TokenSample> tokenSamples, boolean skipAlphaNumerics, TokenContextGenerator cg) Initializes a new event stream based on the data stream using aTokenContextGeneratorandFactory.DEFAULT_CHARACTER_POLICY.TokSpanEventStream(ObjectStream<TokenSample> tokenSamples, boolean skipAlphaNumerics, TokenizerCharacterPolicy characterPolicy, 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 ObjectStreamModifier and TypeClassDescriptionclassA baseObjectStreamimplementation for events.classA baseObjectStreamimplementation.classAnObjectStreamimplementation that works on aCollectionofCollectionObjectStreamas source for elements.classclassFilterObjectStream<S,T> Abstract base class for filteringstreams.classAFilterObjectStreamwhich merges text lines into paragraphs.classReads a plain text file and returns each line as aStringobject.Fields in opennlp.tools.util declared as ObjectStreamModifier and TypeFieldDescriptionprivate final ObjectStream<T> AbstractEventStream.samplesprotected final ObjectStream<S> FilterObjectStream.samplesprivate final ObjectStream<T> AbstractObjectStream.streamMethods in opennlp.tools.util that return ObjectStreamModifier and TypeMethodDescriptionstatic <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<T>.static <T> ObjectStream<T> ObjectStreamUtils.createObjectStream(T... array) Creates anObjectStreamform an array ofObjectStreamUtils.Methods in opennlp.tools.util with parameters of type ObjectStreamModifier and TypeMethodDescriptionstatic <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 ObjectStreamModifier and TypeMethodDescriptionstatic <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 ObjectStreamModifierConstructorDescriptionAbstractEventStream(ObjectStream<T> samples) Initializes anAbstractEventStreamwith a sampleIterator.protectedAbstractObjectStream(ObjectStream<T> stream) Initializes anAbstractObjectStream.EventTraceStream(ObjectStream<Event> stream, Writer writer) Initializes anEventTraceStream.protectedFilterObjectStream(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 ObjectStreamModifier and TypeClassDescriptionprivate static classTheCrossValidationPartitioner.TestSampleStreamiterates over all test elements.static classTheCrossValidationPartitioner.TrainingSampleStreamwhich iterates over all training elements.Fields in opennlp.tools.util.eval declared as ObjectStreamModifier and TypeFieldDescriptionprivate final ObjectStream<E> CrossValidationPartitioner.sampleStreamAnstreamover the whole set of data samples which are used for the cross validation.private final ObjectStream<E> CrossValidationPartitioner.TestSampleStream.sampleStreamprivate final ObjectStream<E> CrossValidationPartitioner.TrainingSampleStream.sampleStreamMethods in opennlp.tools.util.eval that return ObjectStreamModifier and TypeMethodDescriptionCrossValidationPartitioner.TrainingSampleStream.getTestSampleStream()Retrieves theObjectStreamover the test/evaluations elements and poisons thisCrossValidationPartitioner.TrainingSampleStream.Methods in opennlp.tools.util.eval with parameters of type ObjectStreamModifier and TypeMethodDescriptionvoidEvaluator.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 ObjectStreamModifierConstructorDescriptionCrossValidationPartitioner(ObjectStream<E> inElements, int numberOfPartitions) InitializesCrossValidationPartitionerinstance.privateTestSampleStream(ObjectStream<E> sampleStream, int numberOfPartitions, int testIndex) (package private)TrainingSampleStream(ObjectStream<E> sampleStream, int numberOfPartitions, int testIndex)
TokSpanEventStream(ObjectStream, boolean, TokenizerCharacterPolicy, TokenContextGenerator).