Uses of Class
opennlp.tools.util.StringList
Packages that use StringList
Package
Description
Package related to parsing and storing dictionaries.
Experimental package related to converting various corpora to OpenNLP Format.
Package related to language models
Package related to computing and storing n-gram frequencies.
Package containing utility data structures and algorithms used by multiple other packages.
-
Uses of StringList in opennlp.tools.cmdline.namefind
Method parameters in opennlp.tools.cmdline.namefind with type arguments of type StringListModifier and TypeMethodDescriptionstatic DictionaryCensusDictionaryCreatorTool.createDictionary(ObjectStream<StringList> sampleStream) Creates a dictionary. -
Uses of StringList in opennlp.tools.dictionary
Classes in opennlp.tools.dictionary that implement interfaces with type arguments of type StringListModifier and TypeClassDescriptionclassAn iterable and serializable dictionary implementation.Fields in opennlp.tools.dictionary with type parameters of type StringListMethods in opennlp.tools.dictionary that return StringListModifier and TypeMethodDescriptionprivate StringListDictionary.applyCaseSensitivity(StringList list) Methods in opennlp.tools.dictionary that return types with arguments of type StringListMethods in opennlp.tools.dictionary with parameters of type StringListModifier and TypeMethodDescriptionprivate StringListDictionary.applyCaseSensitivity(StringList list) booleanDictionary.contains(StringList tokens) Checks if this dictionary has the given entry.voidDictionary.put(StringList tokens) Adds the tokens to the dictionary as one new entry.voidDictionary.remove(StringList tokens) Removes the given tokens form the current instance.Constructor parameters in opennlp.tools.dictionary with type arguments of type StringList -
Uses of StringList in opennlp.tools.dictionary.serializer
Fields in opennlp.tools.dictionary.serializer declared as StringListModifier and TypeFieldDescriptionprivate final StringListEntry.tokensThe field for thetokensrecord component.Methods in opennlp.tools.dictionary.serializer that return StringListModifier and TypeMethodDescriptionEntry.tokens()Returns the value of thetokensrecord component.Constructors in opennlp.tools.dictionary.serializer with parameters of type StringListModifierConstructorDescriptionEntry(StringList tokens, Attributes attributes) Creates an instance of aEntryrecord class. -
Uses of StringList in opennlp.tools.formats
Classes in opennlp.tools.formats that implement interfaces with type arguments of type StringListModifier and TypeClassDescriptionclassThis class helps to read the US Census data from the files to build a StringList for each dictionary entry in the name-finder dictionary.Methods in opennlp.tools.formats that return StringList -
Uses of StringList in opennlp.tools.languagemodel
Methods in opennlp.tools.languagemodel with parameters of type StringListModifier and TypeMethodDescriptionprivate doubleNGramLanguageModel.calculateProbability(StringList tokens) private doubleNGramLanguageModel.stupidBackoff(StringList ngram) -
Uses of StringList in opennlp.tools.ngram
Classes in opennlp.tools.ngram that implement interfaces with type arguments of type StringListModifier and TypeClassDescriptionclassTheNGramModelcan be used to crate ngrams and character ngrams.Fields in opennlp.tools.ngram with type parameters of type StringListMethods in opennlp.tools.ngram that return StringListModifier and TypeMethodDescriptionstatic StringListNGramUtils.getNMinusOneTokenFirst(StringList ngram) get the (n-1)th ngram of a given ngram, that is the same ngram except the last word in the ngramstatic StringListNGramUtils.getNMinusOneTokenLast(StringList ngram) get the (n-1)th ngram of a given ngram, that is the same ngram except the first word in the ngramprivate static StringListNGramUtils.getNPlusOneNgram(StringList ngram, String word) Methods in opennlp.tools.ngram that return types with arguments of type StringListModifier and TypeMethodDescriptionstatic Collection<StringList> NGramUtils.getNGrams(StringList sequence, int size) Get the ngrams of dimension n of a certain input sequence of tokens.NGramModel.iterator()Retrieves anIteratorover allStringListentries.Methods in opennlp.tools.ngram with parameters of type StringListModifier and TypeMethodDescriptionvoidNGramModel.add(StringList ngram) Adds one NGram, if it already exists the count increase by one.voidNGramModel.add(StringList ngram, int minLength, int maxLength) Adds NGrams up to the specified length to the current instance.static doubleNGramUtils.calculateLaplaceSmoothingProbability(StringList ngram, Iterable<StringList> set, Double k) calculate the probability of a ngram in a vocabulary using Laplace smoothing algorithmstatic doubleNGramUtils.calculateMissingNgramProbabilityMass(StringList ngram, double discount, Iterable<StringList> set) calculate the probability of a ngram in a vocabulary using the missing probability mass algorithmstatic doubleNGramUtils.calculateNgramMLProbability(StringList ngram, Iterable<StringList> set) calculate the probability of a ngram in a vocabulary using maximum likelihood estimationbooleanNGramModel.contains(StringList tokens) Checks fit he given tokens are contained by the current instance.private static DoubleNGramUtils.count(StringList ngram, Iterable<StringList> sentences) intNGramModel.getCount(StringList ngram) Retrieves the count of the given ngram.static Collection<StringList> NGramUtils.getNGrams(StringList sequence, int size) Get the ngrams of dimension n of a certain input sequence of tokens.static StringListNGramUtils.getNMinusOneTokenFirst(StringList ngram) get the (n-1)th ngram of a given ngram, that is the same ngram except the last word in the ngramstatic StringListNGramUtils.getNMinusOneTokenLast(StringList ngram) get the (n-1)th ngram of a given ngram, that is the same ngram except the first word in the ngramprivate static StringListNGramUtils.getNPlusOneNgram(StringList ngram, String word) private static intNGramUtils.indexOf(StringList sentence, String token) voidNGramModel.remove(StringList tokens) Removes the specified tokens form the NGram model, they are just dropped.voidNGramModel.setCount(StringList ngram, int count) Sets the count of an existing ngram.Method parameters in opennlp.tools.ngram with type arguments of type StringListModifier and TypeMethodDescriptionstatic doubleNGramUtils.calculateBigramMLProbability(String x0, String x1, Collection<StringList> set) calculate the probability of a bigram in a vocabulary using maximum likelihood estimationstatic doubleNGramUtils.calculateBigramPriorSmoothingProbability(String x0, String x1, Collection<StringList> set, Double k) calculate the probability of a bigram in a vocabulary using prior Laplace smoothing algorithmstatic doubleNGramUtils.calculateLaplaceSmoothingProbability(StringList ngram, Iterable<StringList> set, Double k) calculate the probability of a ngram in a vocabulary using Laplace smoothing algorithmstatic doubleNGramUtils.calculateMissingNgramProbabilityMass(StringList ngram, double discount, Iterable<StringList> set) calculate the probability of a ngram in a vocabulary using the missing probability mass algorithmstatic doubleNGramUtils.calculateNgramMLProbability(StringList ngram, Iterable<StringList> set) calculate the probability of a ngram in a vocabulary using maximum likelihood estimationstatic doubleNGramUtils.calculateTrigramLinearInterpolationProbability(String x0, String x1, String x2, Collection<StringList> set, Double lambda1, Double lambda2, Double lambda3) calculate the probability of a trigram in a vocabulary using a linear interpolation algorithmstatic doubleNGramUtils.calculateTrigramMLProbability(String x0, String x1, String x2, Iterable<StringList> set) calculate the probability of a trigram in a vocabulary using maximum likelihood estimationstatic doubleNGramUtils.calculateUnigramMLProbability(String word, Collection<StringList> set) calculate the probability of a unigram in a vocabulary using maximum likelihood estimationprivate static DoubleNGramUtils.count(StringList ngram, Iterable<StringList> sentences) private static Collection<String> NGramUtils.flatSet(Iterable<StringList> set) -
Uses of StringList in opennlp.tools.util
Methods in opennlp.tools.util that return StringListMethods in opennlp.tools.util with parameters of type StringListModifier and TypeMethodDescriptionbooleanStringList.compareToIgnoreCase(StringList tokens) Compares totoken listand ignores the case of the tokens. -
Uses of StringList in opennlp.uima.normalizer
Fields in opennlp.uima.normalizer with type parameters of type StringListMethods in opennlp.uima.normalizer that return types with arguments of type StringListModifier and TypeMethodDescription(package private) Iterator<StringList> StringDictionary.iterator()Methods in opennlp.uima.normalizer with parameters of type StringListModifier and TypeMethodDescriptionStringDictionary.get(StringList key) Retrieves a value from a dictionary via itskey.voidStringDictionary.put(StringList key, String value) Adds a new entry to the dictionary.