A B C D E F G H I J K L M N O P R S T U V W Z 
All Classes All Packages

A

able(Iterator<T>) - Static method in class edu.berkeley.nlp.lm.collections.Iterators
Wraps an Iterator as an Iterable
abs(int) - Static method in class edu.berkeley.nlp.lm.bits.BitUtils
 
abs(long) - Static method in class edu.berkeley.nlp.lm.bits.BitUtils
 
absCounts(Counter<L>) - Static method in class edu.berkeley.nlp.lm.collections.Counter
 
AbstractArrayEncodedNgramLanguageModel<W> - Class in edu.berkeley.nlp.lm
Default implementation of all NGramLanguageModel functionality except AbstractArrayEncodedNgramLanguageModel.getLogProb(int[], int, int).
AbstractArrayEncodedNgramLanguageModel(int, WordIndexer<W>, float) - Constructor for class edu.berkeley.nlp.lm.AbstractArrayEncodedNgramLanguageModel
 
AbstractContextEncodedNgramLanguageModel<W> - Class in edu.berkeley.nlp.lm
Default implementation of all ContextEncodedNgramLanguageModel functionality except AbstractContextEncodedNgramLanguageModel.getLogProb(long, int, int, LmContextInfo), {@link #getOffsetForNgram(int[], int, int), and {
AbstractContextEncodedNgramLanguageModel(int, WordIndexer<W>, float) - Constructor for class edu.berkeley.nlp.lm.AbstractContextEncodedNgramLanguageModel
 
AbstractNgramLanguageModel<W> - Class in edu.berkeley.nlp.lm
 
AbstractNgramLanguageModel(int, WordIndexer<W>, float) - Constructor for class edu.berkeley.nlp.lm.AbstractNgramLanguageModel
 
AbstractNgramMap<T> - Class in edu.berkeley.nlp.lm.map
 
AbstractNgramMap(ValueContainer<T>, ConfigOptions) - Constructor for class edu.berkeley.nlp.lm.map.AbstractNgramMap
 
AbstractTMap<T extends java.lang.Comparable> - Class in edu.berkeley.nlp.lm.collections
Contains some limited shared functionality between Custom[type]Maps
AbstractTMap() - Constructor for class edu.berkeley.nlp.lm.collections.AbstractTMap
 
AbstractTMap.Functionality<T extends java.lang.Comparable> - Class in edu.berkeley.nlp.lm.collections
 
AbstractTMap.MapType - Enum in edu.berkeley.nlp.lm.collections
 
add(boolean) - Method in class edu.berkeley.nlp.lm.bits.BitList
 
add(int[], int, int, int, long, long, int, PhraseTableValueContainer.PhraseTableValues, long, boolean) - Method in class edu.berkeley.nlp.lm.phrasetable.PhraseTableValueContainer
 
add(int[], int, int, int, long, long, int, KneserNeyCountValueContainer.KneserNeyCounts, long, boolean) - Method in class edu.berkeley.nlp.lm.values.KneserNeyCountValueContainer
 
add(int[], int, int, int, long, long, int, ProbBackoffPair, long, boolean) - Method in class edu.berkeley.nlp.lm.values.UnrankedUncompressedProbBackoffValueContainer
 
add(int[], int, int, int, long, long, int, V, long, boolean) - Method in interface edu.berkeley.nlp.lm.values.ValueContainer
Adds a new value at the specified offset.
add(long) - Method in class edu.berkeley.nlp.lm.array.CustomWidthArray
 
add(long) - Method in class edu.berkeley.nlp.lm.array.LongArray
 
add(E) - Method in class edu.berkeley.nlp.lm.collections.Indexer
 
addAll(BitList) - Method in class edu.berkeley.nlp.lm.bits.BitList
 
addLong(long) - Method in class edu.berkeley.nlp.lm.bits.BitList
 
addNgram(int[], int, int, LongRef, String, boolean, long[][]) - Method in class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
addShort(short) - Method in class edu.berkeley.nlp.lm.bits.BitList
 
addToIndexer(WordIndexer<W>, String) - Static method in class edu.berkeley.nlp.lm.io.GoogleLmReader
 
addWithFixedCapacity(long) - Method in class edu.berkeley.nlp.lm.array.CustomWidthArray
 
addWithFixedCapacity(long) - Method in class edu.berkeley.nlp.lm.array.LongArray
 
advance(int) - Method in class edu.berkeley.nlp.lm.bits.BitStream
Advances without returning any bits.
Annotations - Class in edu.berkeley.nlp.lm.util
 
Annotations() - Constructor for class edu.berkeley.nlp.lm.util.Annotations
 
Annotations.Option - Annotation Type in edu.berkeley.nlp.lm.util
 
Annotations.OutputParameter - Annotation Type in edu.berkeley.nlp.lm.util
Just a fancy-pants comment.
Annotations.PrintMemoryCount - Annotation Type in edu.berkeley.nlp.lm.util
Fields annotated with this annotation will have their memory usage added to the memory usage map returned by countApproximateMemoryUsage.
Annotations.SkipMemoryCount - Annotation Type in edu.berkeley.nlp.lm.util
 
approxEquals(Counter<E>, double) - Method in class edu.berkeley.nlp.lm.collections.Counter
 
argmax() - Method in class edu.berkeley.nlp.lm.collections.TIntMap
 
argMax() - Method in class edu.berkeley.nlp.lm.collections.Counter
Finds the key with maximum count.
ArpaLmReader<W> - Class in edu.berkeley.nlp.lm.io
A parser for ARPA LM files.
ArpaLmReader(String, WordIndexer<W>, int) - Constructor for class edu.berkeley.nlp.lm.io.ArpaLmReader
 
ArpaLmReaderCallback<V> - Interface in edu.berkeley.nlp.lm.io
Callback that is called for each n-gram in the collection
ArrayEncodedCachingLmWrapper<W> - Class in edu.berkeley.nlp.lm.cache
This class wraps ArrayEncodedNgramLanguageModel with a cache.
ArrayEncodedDirectMappedLmCache - Class in edu.berkeley.nlp.lm.cache
A direct-mapped cache.
ArrayEncodedDirectMappedLmCache(int, int, boolean) - Constructor for class edu.berkeley.nlp.lm.cache.ArrayEncodedDirectMappedLmCache
 
ArrayEncodedLmCache - Interface in edu.berkeley.nlp.lm.cache
 
ArrayEncodedNgramLanguageModel<W> - Interface in edu.berkeley.nlp.lm
Top-level interface for an n-gram language model which accepts n-gram in an array-of-integers encoding.
ArrayEncodedNgramLanguageModel.DefaultImplementations - Class in edu.berkeley.nlp.lm
 
ArrayEncodedProbBackoffLm<W> - Class in edu.berkeley.nlp.lm
Language model implementation which uses Kneser-Ney-style backoff computation.
ArrayEncodedProbBackoffLm(int, WordIndexer<W>, NgramMap<ProbBackoffPair>, ConfigOptions) - Constructor for class edu.berkeley.nlp.lm.ArrayEncodedProbBackoffLm
 
asLong() - Method in interface edu.berkeley.nlp.lm.collections.LongRepresentable
 
asLong() - Method in class edu.berkeley.nlp.lm.util.LongRef
 
asLong() - Method in class edu.berkeley.nlp.lm.values.ProbBackoffPair
 

B

backoff - Variable in class edu.berkeley.nlp.lm.values.ProbBackoffPair
 
backoffOf(long) - Static method in class edu.berkeley.nlp.lm.values.ProbBackoffPair
 
BitList - Class in edu.berkeley.nlp.lm.bits
 
BitList() - Constructor for class edu.berkeley.nlp.lm.bits.BitList
 
BitStream - Class in edu.berkeley.nlp.lm.bits
Wraps a portion of a long[] array with iterator-like functionality over a stream of bits.
BitStream(LongArray, long, int, int) - Constructor for class edu.berkeley.nlp.lm.bits.BitStream
 
BitUtils - Class in edu.berkeley.nlp.lm.bits
 
BitUtils() - Constructor for class edu.berkeley.nlp.lm.bits.BitUtils
 
BoundedList<E> - Class in edu.berkeley.nlp.lm.collections
List which returns special boundary symbols when get() is called outside the range of the list.
BoundedList(List<E>, E, E) - Constructor for class edu.berkeley.nlp.lm.collections.BoundedList
 

C

call(int[], int, int, PhraseTableCounts, String) - Method in class edu.berkeley.nlp.lm.phrasetable.MosesPhraseTableReaderCallback
 
call(int[], int, int, LongRef, String) - Method in class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
call(int[], int, int, ProbBackoffPair, String) - Method in class edu.berkeley.nlp.lm.io.KneserNeyFileWritingLmReaderCallback
 
call(int[], int, int, V, String) - Method in class edu.berkeley.nlp.lm.io.FirstPassCallback
 
call(int[], int, int, V, String) - Method in interface edu.berkeley.nlp.lm.io.LmReaderCallback
Called for each n-gram
call(int[], int, int, V, String) - Method in class edu.berkeley.nlp.lm.io.NgramMapAddingCallback
 
call(W[], LongRef) - Method in class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
callJustLast(W[], LongRef, long[][]) - Method in class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
capacity() - Method in class edu.berkeley.nlp.lm.cache.ArrayEncodedDirectMappedLmCache
 
capacity() - Method in interface edu.berkeley.nlp.lm.cache.ArrayEncodedLmCache
How n-grams can be cached (at most).
capacity() - Method in class edu.berkeley.nlp.lm.cache.ContextEncodedDirectMappedLmCache
 
capacity() - Method in interface edu.berkeley.nlp.lm.cache.ContextEncodedLmCache
 
capacity() - Method in class edu.berkeley.nlp.lm.collections.TIntMap
 
cleanup() - Method in class edu.berkeley.nlp.lm.io.FirstPassCallback
 
cleanup() - Method in class edu.berkeley.nlp.lm.io.KneserNeyFileWritingLmReaderCallback
 
cleanup() - Method in class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
cleanup() - Method in interface edu.berkeley.nlp.lm.io.LmReaderCallback
Called once all reading is done.
cleanup() - Method in class edu.berkeley.nlp.lm.io.NgramMapAddingCallback
 
cleanup() - Method in class edu.berkeley.nlp.lm.phrasetable.MosesPhraseTableReaderCallback
 
clear() - Method in class edu.berkeley.nlp.lm.bits.BitList
 
clear() - Method in class edu.berkeley.nlp.lm.cache.ArrayEncodedDirectMappedLmCache
 
clear() - Method in interface edu.berkeley.nlp.lm.cache.ArrayEncodedLmCache
 
clear() - Method in class edu.berkeley.nlp.lm.collections.Counter
 
clear() - Method in class edu.berkeley.nlp.lm.collections.LongHashSet
 
clear() - Method in class edu.berkeley.nlp.lm.collections.LongToIntHashMap
 
clear() - Method in class edu.berkeley.nlp.lm.collections.TIntMap.EntrySet
 
clear() - Method in class edu.berkeley.nlp.lm.collections.TIntMap.KeySet
 
clear() - Method in class edu.berkeley.nlp.lm.collections.TIntMap.ValueCollection
 
clear(long) - Method in class edu.berkeley.nlp.lm.array.CustomWidthArray
 
clearStorage() - Method in class edu.berkeley.nlp.lm.map.CompressedNgramMap
 
clearStorage() - Method in class edu.berkeley.nlp.lm.map.HashNgramMap
 
clearStorage() - Method in interface edu.berkeley.nlp.lm.map.NgramMap
 
clearStorageAfterCompression(int) - Method in interface edu.berkeley.nlp.lm.values.CompressibleValueContainer
 
clearStorageForOrder(int) - Method in class edu.berkeley.nlp.lm.phrasetable.PhraseTableValueContainer
 
clearStorageForOrder(int) - Method in class edu.berkeley.nlp.lm.values.KneserNeyCountValueContainer
 
clearStorageForOrder(int) - Method in class edu.berkeley.nlp.lm.values.UnrankedUncompressedProbBackoffValueContainer
 
clearStorageForOrder(int) - Method in interface edu.berkeley.nlp.lm.values.ValueContainer
 
close() - Method in class edu.berkeley.nlp.lm.util.Logger.SystemLogger
 
closeEasy(BufferedReader) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
combineInts(int, int) - Static method in class edu.berkeley.nlp.lm.bits.BitUtils
 
combineToKey(int, long) - Method in class edu.berkeley.nlp.lm.map.AbstractNgramMap
 
compare(TIntMap.Entry, TIntMap.Entry) - Method in class edu.berkeley.nlp.lm.collections.TIntMap.EntryValueComparator
 
compare(Map.Entry<E, Double>, Map.Entry<E, Double>) - Method in class edu.berkeley.nlp.lm.collections.Counter.EntryValueComparator
 
compareLongsRaw(long, long) - Static method in class edu.berkeley.nlp.lm.map.CompressedNgramMap
 
compareTo(LongToIntHashMap.Entry) - Method in class edu.berkeley.nlp.lm.collections.LongToIntHashMap.Entry
 
compareTo(LongRef) - Method in class edu.berkeley.nlp.lm.util.LongRef
 
compareTo(ProbBackoffPair) - Method in class edu.berkeley.nlp.lm.values.ProbBackoffPair
 
CompoundLogger(Logger.LogInterface...) - Constructor for class edu.berkeley.nlp.lm.util.Logger.CompoundLogger
 
compress(long) - Method in class edu.berkeley.nlp.lm.bits.VariableLengthBitCompressor
 
compressedBlockSize - Variable in class edu.berkeley.nlp.lm.ConfigOptions
 
CompressedNgramMap<T> - Class in edu.berkeley.nlp.lm.map
 
CompressedNgramMap(CompressibleValueContainer<T>, long[], ConfigOptions) - Constructor for class edu.berkeley.nlp.lm.map.CompressedNgramMap
 
CompressibleProbBackoffValueContainer - Class in edu.berkeley.nlp.lm.values
 
CompressibleProbBackoffValueContainer(int, boolean, long[], float[], float[], Indexer<Float>, int, Indexer<Float>, int) - Constructor for class edu.berkeley.nlp.lm.values.CompressibleProbBackoffValueContainer
 
CompressibleProbBackoffValueContainer(LongToIntHashMap, int, boolean, long[]) - Constructor for class edu.berkeley.nlp.lm.values.CompressibleProbBackoffValueContainer
 
CompressibleValueContainer<V> - Interface in edu.berkeley.nlp.lm.values
 
CompressionUtils - Class in edu.berkeley.nlp.lm.bits
 
CompressionUtils() - Constructor for class edu.berkeley.nlp.lm.bits.CompressionUtils
 
ComputeLogProbabilityOfTextStream - Class in edu.berkeley.nlp.lm.io
Computes the log probability of a list of files.
ComputeLogProbabilityOfTextStream() - Constructor for class edu.berkeley.nlp.lm.io.ComputeLogProbabilityOfTextStream
 
condReq() - Method in annotation type edu.berkeley.nlp.lm.util.Annotations.Option
 
ConfigOptions - Class in edu.berkeley.nlp.lm
Stores some configuration options, with useful defaults.
ConfigOptions() - Constructor for class edu.berkeley.nlp.lm.ConfigOptions
 
contains(int[], int, int) - Method in class edu.berkeley.nlp.lm.map.CompressedNgramMap
 
contains(int[], int, int) - Method in class edu.berkeley.nlp.lm.map.HashNgramMap
 
contains(int[], int, int) - Method in interface edu.berkeley.nlp.lm.map.NgramMap
 
contains(Object) - Method in class edu.berkeley.nlp.lm.collections.TIntMap.EntrySet
 
contains(Object) - Method in class edu.berkeley.nlp.lm.collections.TIntMap.KeySet
 
contains(Object) - Method in class edu.berkeley.nlp.lm.collections.TIntMap.ValueCollection
 
containsKey(long) - Method in class edu.berkeley.nlp.lm.collections.LongHashSet
 
containsKey(E) - Method in class edu.berkeley.nlp.lm.collections.Counter
Returns whether the counter contains the given key.
containsKey(Object) - Method in class edu.berkeley.nlp.lm.map.NgramMapWrapper
 
containsKey(Object) - Method in class edu.berkeley.nlp.lm.map.NgramsForOrderMapWrapper
 
containsKey(T) - Method in class edu.berkeley.nlp.lm.collections.TIntMap
 
containsOutOfVocab(int[], int, int) - Static method in class edu.berkeley.nlp.lm.map.AbstractNgramMap
 
ContextEncodedCachingLmWrapper<T> - Class in edu.berkeley.nlp.lm.cache
This class wraps ContextEncodedNgramLanguageModel with a cache.
ContextEncodedDirectMappedLmCache - Class in edu.berkeley.nlp.lm.cache
 
ContextEncodedDirectMappedLmCache(int, boolean) - Constructor for class edu.berkeley.nlp.lm.cache.ContextEncodedDirectMappedLmCache
 
ContextEncodedLmCache - Interface in edu.berkeley.nlp.lm.cache
 
ContextEncodedNgramLanguageModel<W> - Interface in edu.berkeley.nlp.lm
Interface for language models which expose the internal context-encoding for more efficient queries.
ContextEncodedNgramLanguageModel.DefaultImplementations - Class in edu.berkeley.nlp.lm
 
ContextEncodedNgramLanguageModel.LmContextInfo - Class in edu.berkeley.nlp.lm
Simple class for returning context offsets
ContextEncodedNgramMap<T> - Interface in edu.berkeley.nlp.lm.map
 
ContextEncodedProbBackoffLm<W> - Class in edu.berkeley.nlp.lm
Language model implementation which uses Kneser-Ney style backoff computation.
ContextEncodedProbBackoffLm(int, WordIndexer<W>, ContextEncodedNgramMap<ProbBackoffPair>, ConfigOptions) - Constructor for class edu.berkeley.nlp.lm.ContextEncodedProbBackoffLm
 
contextOffsetOf(long) - Method in class edu.berkeley.nlp.lm.map.AbstractNgramMap
 
copy() - Method in class edu.berkeley.nlp.lm.collections.LongHashSet
 
copy() - Method in class edu.berkeley.nlp.lm.collections.LongToIntHashMap
 
copy() - Method in class edu.berkeley.nlp.lm.collections.TIntMap
 
copy(InputStream, OutputStream) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
copy(Reader, Writer) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
Counter<E> - Class in edu.berkeley.nlp.lm.collections
A map from objects to doubles.
Counter() - Constructor for class edu.berkeley.nlp.lm.collections.Counter
 
Counter(Counter<? extends E>) - Constructor for class edu.berkeley.nlp.lm.collections.Counter
 
Counter(Collection<? extends E>) - Constructor for class edu.berkeley.nlp.lm.collections.Counter
 
Counter.EntryValueComparator - Class in edu.berkeley.nlp.lm.collections
 
CountValueContainer - Class in edu.berkeley.nlp.lm.values
 
CountValueContainer(LongToIntHashMap, int, boolean, long[]) - Constructor for class edu.berkeley.nlp.lm.values.CountValueContainer
 
createArray(int) - Method in class edu.berkeley.nlp.lm.collections.AbstractTMap.Functionality
 
createExplicitWordHashNgramMap(ValueContainer<T>, ConfigOptions, int, boolean) - Static method in class edu.berkeley.nlp.lm.map.HashNgramMap
Note: Explicit HashNgramMap can grow beyond maxNgramOrder
createFreshValues(long[]) - Method in class edu.berkeley.nlp.lm.phrasetable.PhraseTableValueContainer
 
createFreshValues(long[]) - Method in class edu.berkeley.nlp.lm.values.CompressibleProbBackoffValueContainer
 
createFreshValues(long[]) - Method in class edu.berkeley.nlp.lm.values.CountValueContainer
 
createFreshValues(long[]) - Method in class edu.berkeley.nlp.lm.values.KneserNeyCountValueContainer
 
createFreshValues(long[]) - Method in class edu.berkeley.nlp.lm.values.UncompressedProbBackoffValueContainer
 
createFreshValues(long[]) - Method in class edu.berkeley.nlp.lm.values.UnrankedUncompressedProbBackoffValueContainer
 
createFreshValues(long[]) - Method in interface edu.berkeley.nlp.lm.values.ValueContainer
Creates a fresh value container for copying purposes.
createImplicitWordHashNgramMap(ValueContainer<T>, ConfigOptions, LongArray[], boolean) - Static method in class edu.berkeley.nlp.lm.map.HashNgramMap
 
createKneserNeyLmFromTextFiles(List<String>, WordIndexer<W>, int, File, ConfigOptions) - Static method in class edu.berkeley.nlp.lm.io.LmReaders
Estimates a Kneser-Ney language model from raw text, and writes a file (in ARPA format).
CustomWidthArray - Class in edu.berkeley.nlp.lm.array
An array with a custom word "width" in bits.
CustomWidthArray(long, int) - Constructor for class edu.berkeley.nlp.lm.array.CustomWidthArray
 
CustomWidthArray(long, int, int) - Constructor for class edu.berkeley.nlp.lm.array.CustomWidthArray
 

D

dbg(String) - Method in class edu.berkeley.nlp.lm.util.Logger.CompoundLogger
 
dbg(String) - Static method in class edu.berkeley.nlp.lm.util.Logger
 
dbg(String) - Method in interface edu.berkeley.nlp.lm.util.Logger.LogInterface
 
dbg(String) - Method in class edu.berkeley.nlp.lm.util.Logger.NullLogger
 
dbg(String) - Method in class edu.berkeley.nlp.lm.util.Logger.SystemLogger
 
decompress(BitStream) - Method in class edu.berkeley.nlp.lm.bits.VariableLengthBitCompressor
 
decompress(BitStream, int, boolean, ProbBackoffPair) - Method in class edu.berkeley.nlp.lm.values.CompressibleProbBackoffValueContainer
 
decompress(BitStream, int, boolean, V) - Method in interface edu.berkeley.nlp.lm.values.CompressibleValueContainer
Reads and decompresses from the bit stream bits.
DEFAULT_DISCOUNT - Static variable in class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
defaultDiscounts() - Static method in class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
defaultExpectedSize - Static variable in class edu.berkeley.nlp.lm.collections.AbstractTMap
 
defaultFunctionality() - Static method in class edu.berkeley.nlp.lm.collections.AbstractTMap
 
DefaultImplementations() - Constructor for class edu.berkeley.nlp.lm.ArrayEncodedNgramLanguageModel.DefaultImplementations
 
DefaultImplementations() - Constructor for class edu.berkeley.nlp.lm.ContextEncodedNgramLanguageModel.DefaultImplementations
 
defaultMinCounts() - Static method in class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
difference(Counter<E>) - Method in class edu.berkeley.nlp.lm.collections.Counter
 
dotdotTypeCounts - Variable in class edu.berkeley.nlp.lm.values.KneserNeyCountValueContainer.KneserNeyCounts
 
dotProduct(Counter<E>) - Method in class edu.berkeley.nlp.lm.collections.Counter
 

E

edu.berkeley.nlp.lm - package edu.berkeley.nlp.lm
 
edu.berkeley.nlp.lm.array - package edu.berkeley.nlp.lm.array
 
edu.berkeley.nlp.lm.bits - package edu.berkeley.nlp.lm.bits
 
edu.berkeley.nlp.lm.cache - package edu.berkeley.nlp.lm.cache
 
edu.berkeley.nlp.lm.collections - package edu.berkeley.nlp.lm.collections
 
edu.berkeley.nlp.lm.io - package edu.berkeley.nlp.lm.io
 
edu.berkeley.nlp.lm.map - package edu.berkeley.nlp.lm.map
 
edu.berkeley.nlp.lm.phrasetable - package edu.berkeley.nlp.lm.phrasetable
 
edu.berkeley.nlp.lm.util - package edu.berkeley.nlp.lm.util
 
edu.berkeley.nlp.lm.values - package edu.berkeley.nlp.lm.values
 
END_SYMBOL - Static variable in class edu.berkeley.nlp.lm.io.ArpaLmReader
 
endTrack() - Method in class edu.berkeley.nlp.lm.util.Logger.CompoundLogger
 
endTrack() - Static method in class edu.berkeley.nlp.lm.util.Logger
 
endTrack() - Method in interface edu.berkeley.nlp.lm.util.Logger.LogInterface
Ends a track, printing out how long the track took.
endTrack() - Method in class edu.berkeley.nlp.lm.util.Logger.NullLogger
 
endTrack() - Method in class edu.berkeley.nlp.lm.util.Logger.SystemLogger
 
ensureCapacity(int) - Method in class edu.berkeley.nlp.lm.collections.LongHashSet
 
ensureCapacity(int) - Method in class edu.berkeley.nlp.lm.collections.LongToIntHashMap
 
ensureCapacity(long) - Method in class edu.berkeley.nlp.lm.array.CustomWidthArray
 
ensureCapacity(long) - Method in class edu.berkeley.nlp.lm.array.LongArray
 
entries() - Method in class edu.berkeley.nlp.lm.collections.LongToIntHashMap
 
Entry(int[], T) - Constructor for class edu.berkeley.nlp.lm.map.NgramMap.Entry
 
Entry(long, int, int) - Constructor for class edu.berkeley.nlp.lm.collections.LongToIntHashMap.Entry
 
entrySet() - Method in class edu.berkeley.nlp.lm.collections.Counter
 
entrySet() - Method in class edu.berkeley.nlp.lm.collections.TIntMap
 
entrySet() - Method in class edu.berkeley.nlp.lm.map.NgramMapWrapper
 
entrySet() - Method in class edu.berkeley.nlp.lm.map.NgramsForOrderMapWrapper
 
EntrySet() - Constructor for class edu.berkeley.nlp.lm.collections.TIntMap.EntrySet
 
entryValueComparator() - Method in class edu.berkeley.nlp.lm.collections.TIntMap
 
EntryValueComparator() - Constructor for class edu.berkeley.nlp.lm.collections.TIntMap.EntryValueComparator
 
EntryValueComparator(boolean) - Constructor for class edu.berkeley.nlp.lm.collections.Counter.EntryValueComparator
 
equals(int[], int, int, int[]) - Static method in class edu.berkeley.nlp.lm.map.AbstractNgramMap
 
equals(Object) - Method in class edu.berkeley.nlp.lm.util.LongRef
 
equals(Object) - Method in class edu.berkeley.nlp.lm.values.ProbBackoffPair
 
err(String) - Method in class edu.berkeley.nlp.lm.util.Logger.CompoundLogger
 
err(String) - Static method in class edu.berkeley.nlp.lm.util.Logger
 
err(String) - Method in interface edu.berkeley.nlp.lm.util.Logger.LogInterface
 
err(String) - Method in class edu.berkeley.nlp.lm.util.Logger.NullLogger
 
err(String) - Method in class edu.berkeley.nlp.lm.util.Logger.SystemLogger
 
err(String, Object...) - Method in class edu.berkeley.nlp.lm.util.Logger.CompoundLogger
 
err(String, Object...) - Static method in class edu.berkeley.nlp.lm.util.Logger
 
err(String, Object...) - Method in interface edu.berkeley.nlp.lm.util.Logger.LogInterface
 
err(String, Object...) - Method in class edu.berkeley.nlp.lm.util.Logger.NullLogger
 
err(String, Object...) - Method in class edu.berkeley.nlp.lm.util.Logger.SystemLogger
 

F

FeaturePhraseTableValues(float[]) - Constructor for class edu.berkeley.nlp.lm.phrasetable.PhraseTableValueContainer.FeaturePhraseTableValues
 
features - Variable in class edu.berkeley.nlp.lm.phrasetable.MosesPhraseTable.TargetSideTranslation
 
fill(long, long) - Method in class edu.berkeley.nlp.lm.array.CustomWidthArray
 
fill(long, long) - Method in class edu.berkeley.nlp.lm.array.LongArray
 
finished() - Method in class edu.berkeley.nlp.lm.bits.BitStream
 
FirstPassCallback<V extends LongRepresentable<V>> - Class in edu.berkeley.nlp.lm.io
Reader callback which adds n-grams to an NgramMap
FirstPassCallback(boolean) - Constructor for class edu.berkeley.nlp.lm.io.FirstPassCallback
 
flatten(Iterator<Iterator<T>>) - Static method in class edu.berkeley.nlp.lm.collections.Iterators
 
floatsToLong(float, float) - Static method in class edu.berkeley.nlp.lm.values.ProbBackoffPair
 
Functionality() - Constructor for class edu.berkeley.nlp.lm.collections.AbstractTMap.Functionality
 

G

get(int) - Method in class edu.berkeley.nlp.lm.bits.BitList
 
get(int) - Method in class edu.berkeley.nlp.lm.collections.BoundedList
Returns the object at the given index, provided the index is between 0 (inclusive) and size() (exclusive).
get(int[], int, int) - Method in class edu.berkeley.nlp.lm.map.CompressedNgramMap
 
get(int[], int, int) - Method in class edu.berkeley.nlp.lm.map.HashNgramMap
 
get(int[], int, int) - Method in interface edu.berkeley.nlp.lm.map.NgramMap
 
get(long) - Method in class edu.berkeley.nlp.lm.array.CustomWidthArray
 
get(long) - Method in class edu.berkeley.nlp.lm.array.LongArray
 
get(long) - Method in class edu.berkeley.nlp.lm.collections.LongHashSet
 
get(long, int) - Method in class edu.berkeley.nlp.lm.collections.LongToIntHashMap
 
get(long, int, int) - Method in class edu.berkeley.nlp.lm.array.CustomWidthArray
 
get(Object) - Method in class edu.berkeley.nlp.lm.map.NgramMapWrapper
 
get(Object) - Method in class edu.berkeley.nlp.lm.map.NgramsForOrderMapWrapper
 
get(T, int) - Method in class edu.berkeley.nlp.lm.collections.TIntMap
 
getBackoff(int, long) - Method in class edu.berkeley.nlp.lm.values.CompressibleProbBackoffValueContainer
 
getBackoff(int, long) - Method in interface edu.berkeley.nlp.lm.values.ProbBackoffValueContainer
 
getBackoff(int, long) - Method in class edu.berkeley.nlp.lm.values.UncompressedProbBackoffValueContainer
 
getBackoff(int, long) - Method in class edu.berkeley.nlp.lm.values.UnrankedUncompressedProbBackoffValueContainer
 
getBackoff(CustomWidthArray, long) - Method in class edu.berkeley.nlp.lm.values.CompressibleProbBackoffValueContainer
 
getBackoff(CustomWidthArray, long) - Method in class edu.berkeley.nlp.lm.values.UncompressedProbBackoffValueContainer
 
getBigramTypeCounts() - Method in class edu.berkeley.nlp.lm.values.KneserNeyCountValueContainer
 
getBit(long) - Method in class edu.berkeley.nlp.lm.array.CustomWidthArray
 
getCached(int[], int, int, int) - Method in class edu.berkeley.nlp.lm.cache.ArrayEncodedDirectMappedLmCache
 
getCached(int[], int, int, int) - Method in interface edu.berkeley.nlp.lm.cache.ArrayEncodedLmCache
Should return Float.NaN if the requested n-gram is not in the cache
getCached(long, int, int, int, ContextEncodedNgramLanguageModel.LmContextInfo) - Method in class edu.berkeley.nlp.lm.cache.ContextEncodedDirectMappedLmCache
 
getCached(long, int, int, int, ContextEncodedNgramLanguageModel.LmContextInfo) - Method in interface edu.berkeley.nlp.lm.cache.ContextEncodedLmCache
Should return Float.NaN if requested n-gram is not in the cache.
getCharEncoding() - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
getCompressed(long, int) - Method in class edu.berkeley.nlp.lm.values.CompressibleProbBackoffValueContainer
 
getCompressed(long, int) - Method in interface edu.berkeley.nlp.lm.values.CompressibleValueContainer
Compresses the value at the given offset into a list of bits.
getCount(int, long) - Method in class edu.berkeley.nlp.lm.values.CountValueContainer
 
getCount(E) - Method in class edu.berkeley.nlp.lm.collections.Counter
Get the count of the element, or zero if the element is not in the counter.
getCountRank(long) - Method in class edu.berkeley.nlp.lm.values.CompressibleProbBackoffValueContainer
 
getCountRank(long) - Method in class edu.berkeley.nlp.lm.values.CountValueContainer
 
getCountRank(long) - Method in class edu.berkeley.nlp.lm.values.UncompressedProbBackoffValueContainer
 
getDefaultCount() - Method in class edu.berkeley.nlp.lm.collections.Counter
 
getDefaultVal() - Method in class edu.berkeley.nlp.lm.values.CompressibleProbBackoffValueContainer
 
getDefaultVal() - Method in class edu.berkeley.nlp.lm.values.CountValueContainer
 
getDefaultVal() - Method in class edu.berkeley.nlp.lm.values.UncompressedProbBackoffValueContainer
 
getDiscountForOrder(int) - Method in class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
getDistributionOverNextWords(NgramLanguageModel<W>, List<W>) - Static method in class edu.berkeley.nlp.lm.NgramLanguageModel.StaticMethods
Builds a distribution over next possible words given the context.
getEndSymbol() - Method in class edu.berkeley.nlp.lm.StringWordIndexer
 
getEndSymbol() - Method in interface edu.berkeley.nlp.lm.WordIndexer
Returns the start symbol (usually something like </s>
getEntriesSortedByDecreasingCount() - Method in class edu.berkeley.nlp.lm.collections.Counter
 
getEntriesSortedByIncreasingCount() - Method in class edu.berkeley.nlp.lm.collections.Counter
 
getEntrySet() - Method in class edu.berkeley.nlp.lm.collections.Counter
 
getFailures() - Method in class edu.berkeley.nlp.lm.io.NgramMapAddingCallback
 
getFirst() - Method in class edu.berkeley.nlp.lm.util.Pair
 
getFirstWordForOffset(long, int) - Method in class edu.berkeley.nlp.lm.map.HashNgramMap
 
getFromOffset(long, int, PhraseTableValueContainer.PhraseTableValues) - Method in class edu.berkeley.nlp.lm.phrasetable.PhraseTableValueContainer
 
getFromOffset(long, int, LongRef) - Method in class edu.berkeley.nlp.lm.values.CountValueContainer
 
getFromOffset(long, int, KneserNeyCountValueContainer.KneserNeyCounts) - Method in class edu.berkeley.nlp.lm.values.KneserNeyCountValueContainer
 
getFromOffset(long, int, ProbBackoffPair) - Method in class edu.berkeley.nlp.lm.values.CompressibleProbBackoffValueContainer
 
getFromOffset(long, int, ProbBackoffPair) - Method in class edu.berkeley.nlp.lm.values.UncompressedProbBackoffValueContainer
 
getFromOffset(long, int, ProbBackoffPair) - Method in class edu.berkeley.nlp.lm.values.UnrankedUncompressedProbBackoffValueContainer
 
getFromOffset(long, int, V) - Method in interface edu.berkeley.nlp.lm.values.ValueContainer
Gets the value living at a particular offset.
getFromRank(long, LongRef) - Method in class edu.berkeley.nlp.lm.values.CountValueContainer
 
getFromRank(long, ProbBackoffPair) - Method in class edu.berkeley.nlp.lm.values.CompressibleProbBackoffValueContainer
 
getFromRank(long, ProbBackoffPair) - Method in class edu.berkeley.nlp.lm.values.UncompressedProbBackoffValueContainer
 
getFullWidth() - Method in class edu.berkeley.nlp.lm.array.CustomWidthArray
 
getGlobalLogger() - Static method in class edu.berkeley.nlp.lm.util.Logger
 
getHighestOrderProb(int[], int, int) - Method in class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
getHighInt(long) - Static method in class edu.berkeley.nlp.lm.bits.BitUtils
 
getIndex(E) - Method in class edu.berkeley.nlp.lm.collections.Indexer
Return the index of the element If doesn't exist, add it.
getIndexPossiblyUnk(String) - Method in class edu.berkeley.nlp.lm.StringWordIndexer
 
getIndexPossiblyUnk(W) - Method in interface edu.berkeley.nlp.lm.WordIndexer
Should never add to vocabulary, and should return getUnkSymbol() if the word is not in the vocabulary.
getInternalVal(int, long) - Method in class edu.berkeley.nlp.lm.values.CompressibleProbBackoffValueContainer
 
getInternalVal(int, long) - Method in class edu.berkeley.nlp.lm.values.UncompressedProbBackoffValueContainer
 
getKey() - Method in class edu.berkeley.nlp.lm.collections.LongToIntHashMap.Entry
 
getKey() - Method in class edu.berkeley.nlp.lm.collections.TIntMap.Entry
 
getKeyWidth() - Method in class edu.berkeley.nlp.lm.array.CustomWidthArray
 
getLastWordForOffset(long, int) - Method in class edu.berkeley.nlp.lm.map.HashNgramMap
 
getLmOrder() - Method in class edu.berkeley.nlp.lm.AbstractNgramLanguageModel
 
getLmOrder() - Method in class edu.berkeley.nlp.lm.io.GoogleLmReader
 
getLmOrder() - Method in class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
getLmOrder() - Method in interface edu.berkeley.nlp.lm.NgramLanguageModel
Maximum size of n-grams stored by the model.
getLogProb(int[]) - Method in class edu.berkeley.nlp.lm.AbstractArrayEncodedNgramLanguageModel
 
getLogProb(int[]) - Method in interface edu.berkeley.nlp.lm.ArrayEncodedNgramLanguageModel
Equivalent to getLogProb(ngram, 0, ngram.length)
getLogProb(int[]) - Method in class edu.berkeley.nlp.lm.ArrayEncodedProbBackoffLm
 
getLogProb(int[]) - Method in class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
getLogProb(int[]) - Method in class edu.berkeley.nlp.lm.StupidBackoffLm
 
getLogProb(int[], int, int) - Method in class edu.berkeley.nlp.lm.AbstractArrayEncodedNgramLanguageModel
 
getLogProb(int[], int, int) - Method in interface edu.berkeley.nlp.lm.ArrayEncodedNgramLanguageModel
Calculate language model score of an n-gram.
getLogProb(int[], int, int) - Method in class edu.berkeley.nlp.lm.ArrayEncodedProbBackoffLm
 
getLogProb(int[], int, int) - Method in class edu.berkeley.nlp.lm.cache.ArrayEncodedCachingLmWrapper
 
getLogProb(int[], int, int) - Method in class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
getLogProb(int[], int, int) - Method in class edu.berkeley.nlp.lm.StupidBackoffLm
 
getLogProb(int[], ArrayEncodedNgramLanguageModel<T>) - Static method in class edu.berkeley.nlp.lm.ArrayEncodedNgramLanguageModel.DefaultImplementations
 
getLogProb(long, int, int, ContextEncodedNgramLanguageModel.LmContextInfo) - Method in class edu.berkeley.nlp.lm.AbstractContextEncodedNgramLanguageModel
 
getLogProb(long, int, int, ContextEncodedNgramLanguageModel.LmContextInfo) - Method in class edu.berkeley.nlp.lm.cache.ContextEncodedCachingLmWrapper
 
getLogProb(long, int, int, ContextEncodedNgramLanguageModel.LmContextInfo) - Method in interface edu.berkeley.nlp.lm.ContextEncodedNgramLanguageModel
Get the score for an n-gram, and also get the context offset of the n-gram's suffix.
getLogProb(long, int, int, ContextEncodedNgramLanguageModel.LmContextInfo) - Method in class edu.berkeley.nlp.lm.ContextEncodedProbBackoffLm
 
getLogProb(List<T>, ArrayEncodedNgramLanguageModel<T>) - Static method in class edu.berkeley.nlp.lm.ArrayEncodedNgramLanguageModel.DefaultImplementations
 
getLogProb(List<T>, ContextEncodedNgramLanguageModel<T>) - Static method in class edu.berkeley.nlp.lm.ContextEncodedNgramLanguageModel.DefaultImplementations
 
getLogProb(List<W>) - Method in class edu.berkeley.nlp.lm.AbstractArrayEncodedNgramLanguageModel
 
getLogProb(List<W>) - Method in class edu.berkeley.nlp.lm.AbstractContextEncodedNgramLanguageModel
 
getLogProb(List<W>) - Method in class edu.berkeley.nlp.lm.ArrayEncodedProbBackoffLm
 
getLogProb(List<W>) - Method in class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
getLogProb(List<W>) - Method in interface edu.berkeley.nlp.lm.NgramLanguageModel
Scores an n-gram.
getLogProb(List<W>) - Method in class edu.berkeley.nlp.lm.StupidBackoffLm
 
getLowerOrderBackoff(int[], int, int) - Method in class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
getLowerOrderProb(int[], int, int) - Method in class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
getLowInt(long) - Static method in class edu.berkeley.nlp.lm.bits.BitUtils
 
getLowLong(long) - Static method in class edu.berkeley.nlp.lm.bits.BitUtils
 
getMap() - Method in class edu.berkeley.nlp.lm.phrasetable.MosesPhraseTableReaderCallback
 
getMapForOrder(int) - Method in class edu.berkeley.nlp.lm.map.NgramMapWrapper
 
getMaxNgramOrder() - Method in class edu.berkeley.nlp.lm.map.CompressedNgramMap
 
getMaxNgramOrder() - Method in class edu.berkeley.nlp.lm.map.HashNgramMap
 
getMaxNgramOrder() - Method in interface edu.berkeley.nlp.lm.map.NgramMap
 
getNextContextOffset(long, int) - Method in class edu.berkeley.nlp.lm.map.HashNgramMap
 
getNextWord(long, int) - Method in class edu.berkeley.nlp.lm.map.HashNgramMap
 
getNgramForOffset(long, int) - Method in class edu.berkeley.nlp.lm.map.HashNgramMap
 
getNgramForOffset(long, int, int) - Method in class edu.berkeley.nlp.lm.AbstractContextEncodedNgramLanguageModel
 
getNgramForOffset(long, int, int) - Method in class edu.berkeley.nlp.lm.cache.ContextEncodedCachingLmWrapper
 
getNgramForOffset(long, int, int) - Method in interface edu.berkeley.nlp.lm.ContextEncodedNgramLanguageModel
Gets the n-gram referred to by a context-encoding.
getNgramForOffset(long, int, int) - Method in class edu.berkeley.nlp.lm.ContextEncodedProbBackoffLm
 
getNgramForOffset(long, int, int[]) - Method in class edu.berkeley.nlp.lm.map.HashNgramMap
 
getNgramFromContextEncoding(long, int, int) - Method in interface edu.berkeley.nlp.lm.map.ContextEncodedNgramMap
 
getNgramFromContextEncoding(long, int, int) - Method in class edu.berkeley.nlp.lm.map.HashNgramMap
 
getNgramMap() - Method in class edu.berkeley.nlp.lm.ArrayEncodedProbBackoffLm
 
getNgramMap() - Method in class edu.berkeley.nlp.lm.ContextEncodedProbBackoffLm
 
getNgramMap() - Method in class edu.berkeley.nlp.lm.map.NgramMapWrapper
 
getNgramMap() - Method in class edu.berkeley.nlp.lm.StupidBackoffLm
 
getNgramOffsetsForOrder(int) - Method in class edu.berkeley.nlp.lm.map.HashNgramMap
 
getNgramsForOrder(int) - Method in class edu.berkeley.nlp.lm.map.CompressedNgramMap
 
getNgramsForOrder(int) - Method in class edu.berkeley.nlp.lm.map.HashNgramMap
 
getNgramsForOrder(int) - Method in interface edu.berkeley.nlp.lm.map.NgramMap
 
getNumNgrams(int) - Method in class edu.berkeley.nlp.lm.map.CompressedNgramMap
 
getNumNgrams(int) - Method in class edu.berkeley.nlp.lm.map.HashNgramMap
 
getNumNgrams(int) - Method in interface edu.berkeley.nlp.lm.map.NgramMap
 
getNumNgramsForEachOrder() - Method in class edu.berkeley.nlp.lm.io.FirstPassCallback
 
getNumNgramsForEachWord() - Method in class edu.berkeley.nlp.lm.io.FirstPassCallback
 
getNumOneCountNgrams(int) - Method in class edu.berkeley.nlp.lm.values.KneserNeyCountValueContainer
 
getNumTwoCountNgrams(int) - Method in class edu.berkeley.nlp.lm.values.KneserNeyCountValueContainer
 
getObject(int) - Method in class edu.berkeley.nlp.lm.collections.Indexer
 
getObjects() - Method in class edu.berkeley.nlp.lm.collections.Indexer
 
getObjectsSortedByValue(boolean) - Method in class edu.berkeley.nlp.lm.collections.LongToIntHashMap
 
getOffset(long, int, int) - Method in interface edu.berkeley.nlp.lm.map.ContextEncodedNgramMap
 
getOffset(long, int, int) - Method in class edu.berkeley.nlp.lm.map.HashNgramMap
 
getOffsetForNgram(int[], int, int) - Method in class edu.berkeley.nlp.lm.AbstractContextEncodedNgramLanguageModel
 
getOffsetForNgram(int[], int, int) - Method in class edu.berkeley.nlp.lm.cache.ContextEncodedCachingLmWrapper
 
getOffsetForNgram(int[], int, int) - Method in interface edu.berkeley.nlp.lm.ContextEncodedNgramLanguageModel
Gets the offset which refers to an n-gram.
getOffsetForNgram(int[], int, int) - Method in class edu.berkeley.nlp.lm.ContextEncodedProbBackoffLm
 
getOffsetForNgram(int[], int, int) - Method in interface edu.berkeley.nlp.lm.map.ContextEncodedNgramMap
 
getOffsetForNgram(int[], int, int) - Method in class edu.berkeley.nlp.lm.map.HashNgramMap
 
getOffsetForNgramInModel(int[], int, int) - Method in class edu.berkeley.nlp.lm.map.HashNgramMap
Like HashNgramMap.getOffsetForNgram(int[], int, int), but assumes that the full n-gram is in the map (i.e.
getOrAddIndex(String) - Method in class edu.berkeley.nlp.lm.StringWordIndexer
 
getOrAddIndex(W) - Method in interface edu.berkeley.nlp.lm.WordIndexer
Gets the index for a word, adding if necessary.
getOrAddIndexFromString(String) - Method in class edu.berkeley.nlp.lm.StringWordIndexer
 
getOrAddIndexFromString(String) - Method in interface edu.berkeley.nlp.lm.WordIndexer
 
getPrefixOffset(long, int) - Method in class edu.berkeley.nlp.lm.map.HashNgramMap
Gets the offset of the context for an n-gram (represented by offset)
getProb(int, long) - Method in class edu.berkeley.nlp.lm.values.CompressibleProbBackoffValueContainer
 
getProb(int, long) - Method in interface edu.berkeley.nlp.lm.values.ProbBackoffValueContainer
 
getProb(int, long) - Method in class edu.berkeley.nlp.lm.values.UncompressedProbBackoffValueContainer
 
getProb(int, long) - Method in class edu.berkeley.nlp.lm.values.UnrankedUncompressedProbBackoffValueContainer
 
getProb(CustomWidthArray, long) - Method in class edu.berkeley.nlp.lm.values.CompressibleProbBackoffValueContainer
 
getProb(CustomWidthArray, long) - Method in class edu.berkeley.nlp.lm.values.UncompressedProbBackoffValueContainer
 
getProbability(E) - Method in class edu.berkeley.nlp.lm.collections.Counter
I know, I know, this should be wrapped in a Distribution class, but it's such a common use...why not.
getRawCount(int[], int, int) - Method in class edu.berkeley.nlp.lm.StupidBackoffLm
Gets the raw count of an n-gram.
getReader(InputStream) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
getScratchValue() - Method in class edu.berkeley.nlp.lm.phrasetable.PhraseTableValueContainer
 
getScratchValue() - Method in class edu.berkeley.nlp.lm.values.CompressibleProbBackoffValueContainer
 
getScratchValue() - Method in class edu.berkeley.nlp.lm.values.CountValueContainer
 
getScratchValue() - Method in class edu.berkeley.nlp.lm.values.KneserNeyCountValueContainer
 
getScratchValue() - Method in interface edu.berkeley.nlp.lm.values.ProbBackoffValueContainer
 
getScratchValue() - Method in class edu.berkeley.nlp.lm.values.UncompressedProbBackoffValueContainer
 
getScratchValue() - Method in class edu.berkeley.nlp.lm.values.UnrankedUncompressedProbBackoffValueContainer
 
getScratchValue() - Method in interface edu.berkeley.nlp.lm.values.ValueContainer
Creates a fresh value of object (useful for passing as an output parameter)
getSecond() - Method in class edu.berkeley.nlp.lm.util.Pair
 
getSeparatorWord() - Method in class edu.berkeley.nlp.lm.phrasetable.PhraseTableValueContainer
 
getStartSymbol() - Method in class edu.berkeley.nlp.lm.StringWordIndexer
 
getStartSymbol() - Method in interface edu.berkeley.nlp.lm.WordIndexer
Returns the start symbol (usually something like <s>
getSubArray(int[], int, int) - Static method in class edu.berkeley.nlp.lm.map.AbstractNgramMap
 
getSuffixOffset(long, int) - Method in interface edu.berkeley.nlp.lm.values.ProbBackoffValueContainer
 
getSuffixOffset(long, int) - Method in class edu.berkeley.nlp.lm.values.UnrankedUncompressedProbBackoffValueContainer
 
getSure(T) - Method in class edu.berkeley.nlp.lm.collections.TIntMap
 
getTotalSize() - Method in class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
getTotalSize() - Method in class edu.berkeley.nlp.lm.map.HashNgramMap
 
getTranslations(int[], int, int) - Method in class edu.berkeley.nlp.lm.phrasetable.MosesPhraseTable
 
getUnigramSum() - Method in class edu.berkeley.nlp.lm.values.CountValueContainer
 
getUnkSymbol() - Method in class edu.berkeley.nlp.lm.StringWordIndexer
 
getUnkSymbol() - Method in interface edu.berkeley.nlp.lm.WordIndexer
Returns the unk symbol (usually something like <unk>
getValue() - Method in class edu.berkeley.nlp.lm.collections.LongToIntHashMap.Entry
 
getValue() - Method in class edu.berkeley.nlp.lm.collections.TIntMap.Entry
 
getValueAndOffset(long, int, int, T) - Method in class edu.berkeley.nlp.lm.map.CompressedNgramMap
 
getValueAndOffset(long, int, int, T) - Method in class edu.berkeley.nlp.lm.map.HashNgramMap
 
getValueAndOffset(long, int, int, V) - Method in interface edu.berkeley.nlp.lm.map.NgramMap
 
getValueCounter() - Method in class edu.berkeley.nlp.lm.io.FirstPassCallback
 
getValues() - Method in class edu.berkeley.nlp.lm.map.AbstractNgramMap
 
getValues() - Method in interface edu.berkeley.nlp.lm.map.NgramMap
 
getValueStoringArray(int) - Method in class edu.berkeley.nlp.lm.map.CompressedNgramMap
 
getValueStoringArray(int) - Method in class edu.berkeley.nlp.lm.map.HashNgramMap
 
getValueStoringArray(int) - Method in interface edu.berkeley.nlp.lm.map.NgramMap
 
getWord(int) - Method in class edu.berkeley.nlp.lm.StringWordIndexer
 
getWord(int) - Method in interface edu.berkeley.nlp.lm.WordIndexer
Gets the word object for an index.
getWordIndexer() - Method in class edu.berkeley.nlp.lm.AbstractNgramLanguageModel
 
getWordIndexer() - Method in class edu.berkeley.nlp.lm.cache.ContextEncodedCachingLmWrapper
 
getWordIndexer() - Method in class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
getWordIndexer() - Method in class edu.berkeley.nlp.lm.map.NgramMapWrapper
 
getWordIndexer() - Method in interface edu.berkeley.nlp.lm.NgramLanguageModel
Each LM must have a WordIndexer which assigns integer IDs to each word W in the language.
getWordIndexer() - Method in class edu.berkeley.nlp.lm.phrasetable.MosesPhraseTable
 
getWriter(OutputStream) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
gloss() - Method in annotation type edu.berkeley.nlp.lm.util.Annotations.Option
 
GoogleLmReader<W> - Class in edu.berkeley.nlp.lm.io
Reads in n-gram count collections in the format that the Google n-grams Web1T corpus comes in.
GoogleLmReader(String, WordIndexer<W>, ConfigOptions) - Constructor for class edu.berkeley.nlp.lm.io.GoogleLmReader
 
growFactor - Static variable in class edu.berkeley.nlp.lm.collections.AbstractTMap
 
gut() - Method in class edu.berkeley.nlp.lm.collections.TIntMap
 

H

handleNgramOrderFinished(int) - Method in class edu.berkeley.nlp.lm.io.FirstPassCallback
 
handleNgramOrderFinished(int) - Method in class edu.berkeley.nlp.lm.io.KneserNeyFileWritingLmReaderCallback
 
handleNgramOrderFinished(int) - Method in class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
handleNgramOrderFinished(int) - Method in class edu.berkeley.nlp.lm.io.NgramMapAddingCallback
 
handleNgramOrderFinished(int) - Method in interface edu.berkeley.nlp.lm.io.NgramOrderedLmReaderCallback
Called when all n-grams of a given order are finished
handleNgramOrderStarted(int) - Method in class edu.berkeley.nlp.lm.io.FirstPassCallback
 
handleNgramOrderStarted(int) - Method in class edu.berkeley.nlp.lm.io.KneserNeyFileWritingLmReaderCallback
 
handleNgramOrderStarted(int) - Method in class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
handleNgramOrderStarted(int) - Method in class edu.berkeley.nlp.lm.io.NgramMapAddingCallback
 
handleNgramOrderStarted(int) - Method in interface edu.berkeley.nlp.lm.io.NgramOrderedLmReaderCallback
Called when n-grams of a given order are started
handleNgramsFinished(int) - Method in class edu.berkeley.nlp.lm.map.CompressedNgramMap
 
handleNgramsFinished(int) - Method in class edu.berkeley.nlp.lm.map.HashNgramMap
 
handleNgramsFinished(int) - Method in interface edu.berkeley.nlp.lm.map.NgramMap
 
HASH_TABLE - edu.berkeley.nlp.lm.collections.AbstractTMap.MapType
 
hash32(int[], int, int) - Static method in class edu.berkeley.nlp.lm.util.MurmurHash
 
hash32(int[], int, int, int) - Static method in class edu.berkeley.nlp.lm.util.MurmurHash
Generates 32 bit hash from byte array of the given length and seed.
hashCode() - Method in class edu.berkeley.nlp.lm.util.LongRef
 
hashCode() - Method in class edu.berkeley.nlp.lm.values.ProbBackoffPair
 
HashNgramMap<T> - Class in edu.berkeley.nlp.lm.map
 
hashOneLong(long, int) - Static method in class edu.berkeley.nlp.lm.util.MurmurHash
 
hashTableLoadFactor - Variable in class edu.berkeley.nlp.lm.ConfigOptions
 
hashThreeLongs(long, long, long) - Static method in class edu.berkeley.nlp.lm.util.MurmurHash
 
hasNext() - Method in class edu.berkeley.nlp.lm.collections.Iterators.IteratorIterator
 
hasNext() - Method in class edu.berkeley.nlp.lm.collections.Iterators.Transform
 

I

i() - Static method in class edu.berkeley.nlp.lm.util.Logger
 
i(long) - Static method in class edu.berkeley.nlp.lm.array.LongArray
 
incr(T, int) - Method in class edu.berkeley.nlp.lm.collections.TIntMap
 
incrAll(int) - Method in class edu.berkeley.nlp.lm.collections.TIntMap
 
incrementAll(Counter<T>) - Method in class edu.berkeley.nlp.lm.collections.Counter
 
incrementAll(Counter<T>, double) - Method in class edu.berkeley.nlp.lm.collections.Counter
 
incrementAll(Collection<? extends E>, double) - Method in class edu.berkeley.nlp.lm.collections.Counter
Increment each element in a given collection by a given amount.
incrementCount(long, int) - Method in class edu.berkeley.nlp.lm.collections.LongToIntHashMap
 
incrementCount(long, long) - Method in class edu.berkeley.nlp.lm.array.CustomWidthArray
 
incrementCount(long, long) - Method in class edu.berkeley.nlp.lm.array.LongArray
 
incrementCount(E, double) - Method in class edu.berkeley.nlp.lm.collections.Counter
Increment a key's count by the given amount.
incrIfKeyExists(T, int) - Method in class edu.berkeley.nlp.lm.collections.TIntMap
 
incrMap(TIntMap<T>, int) - Method in class edu.berkeley.nlp.lm.collections.TIntMap
 
Indexer<E extends java.lang.Comparable<E>> - Class in edu.berkeley.nlp.lm.collections
Maintains a two-way map between a set of objects and contiguous integers from 0 to the number of objects.
Indexer() - Constructor for class edu.berkeley.nlp.lm.collections.Indexer
 
Indexer(boolean) - Constructor for class edu.berkeley.nlp.lm.collections.Indexer
 
Indexer(Collection<? extends E>) - Constructor for class edu.berkeley.nlp.lm.collections.Indexer
 
indexes - Variable in class edu.berkeley.nlp.lm.collections.Indexer
 
indexOf(E) - Method in class edu.berkeley.nlp.lm.collections.Indexer
Returns the index of the given object, or -1 if the object is not present in the indexer.
initWithLengths(List<Long>) - Method in interface edu.berkeley.nlp.lm.io.ArpaLmReaderCallback
Called initially with a list of how many n-grams will appear for each order.
initWithLengths(List<Long>) - Method in class edu.berkeley.nlp.lm.io.FirstPassCallback
 
initWithLengths(List<Long>) - Method in class edu.berkeley.nlp.lm.io.KneserNeyFileWritingLmReaderCallback
 
initWithLengths(List<Long>) - Method in class edu.berkeley.nlp.lm.io.NgramMapAddingCallback
 
initWithLengths(List<Long>) - Method in class edu.berkeley.nlp.lm.map.CompressedNgramMap
 
initWithLengths(List<Long>) - Method in class edu.berkeley.nlp.lm.map.HashNgramMap
 
initWithLengths(List<Long>) - Method in interface edu.berkeley.nlp.lm.map.NgramMap
 
intern(T) - Method in class edu.berkeley.nlp.lm.collections.AbstractTMap.Functionality
 
interpolateProb(int[], int, int) - Method in class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
IOUtils - Class in edu.berkeley.nlp.lm.io
Some IO utility functions.
IOUtils() - Constructor for class edu.berkeley.nlp.lm.io.IOUtils
 
isEmpty() - Method in class edu.berkeley.nlp.lm.collections.Counter
True if there are no entries in the counter (false does not mean totalCount > 0)
isEmpty() - Method in class edu.berkeley.nlp.lm.collections.LongHashSet
 
isEmpty() - Method in class edu.berkeley.nlp.lm.collections.LongToIntHashMap
 
isEmpty(String) - Static method in class edu.berkeley.nlp.lm.util.StrUtils
 
isEqualTo(Counter<E>) - Method in class edu.berkeley.nlp.lm.collections.Counter
 
isOneCount - Variable in class edu.berkeley.nlp.lm.values.KneserNeyCountValueContainer.KneserNeyCounts
 
isReversed() - Method in class edu.berkeley.nlp.lm.map.HashNgramMap
 
isTwoCount - Variable in class edu.berkeley.nlp.lm.values.KneserNeyCountValueContainer.KneserNeyCounts
 
iterator() - Method in class edu.berkeley.nlp.lm.collections.TIntMap.EntrySet
 
iterator() - Method in class edu.berkeley.nlp.lm.collections.TIntMap
 
iterator() - Method in class edu.berkeley.nlp.lm.collections.TIntMap.KeySet
 
iterator() - Method in class edu.berkeley.nlp.lm.collections.TIntMap.ValueCollection
 
iterator() - Method in class edu.berkeley.nlp.lm.map.NgramIterableWrapper
 
iterator() - Method in class edu.berkeley.nlp.lm.map.NgramsForOrderIterableWrapper
 
IteratorIterator(Iterator<Iterator<T>>) - Constructor for class edu.berkeley.nlp.lm.collections.Iterators.IteratorIterator
 
Iterators - Class in edu.berkeley.nlp.lm.collections
Utilities for dealing with Iterators
Iterators() - Constructor for class edu.berkeley.nlp.lm.collections.Iterators
 
Iterators.IteratorIterator<T> - Class in edu.berkeley.nlp.lm.collections
Wraps a two-level iteration scenario in an iterator.
Iterators.Transform<S,​T> - Class in edu.berkeley.nlp.lm.collections
Wraps a base iterator with a transformation function.

J

join(List<T>) - Static method in class edu.berkeley.nlp.lm.util.StrUtils
 
join(List<T>, String) - Static method in class edu.berkeley.nlp.lm.util.StrUtils
 
join(List<T>, String, int, int) - Static method in class edu.berkeley.nlp.lm.util.StrUtils
 

K

key - Variable in class edu.berkeley.nlp.lm.collections.LongToIntHashMap.Entry
 
key - Variable in class edu.berkeley.nlp.lm.map.NgramMap.Entry
 
keyFunc - Variable in class edu.berkeley.nlp.lm.collections.AbstractTMap
 
keys - Variable in class edu.berkeley.nlp.lm.collections.AbstractTMap
 
keySet() - Method in class edu.berkeley.nlp.lm.collections.Counter
The elements in the counter.
keySet() - Method in class edu.berkeley.nlp.lm.collections.LongToIntHashMap
 
keySet() - Method in class edu.berkeley.nlp.lm.collections.TIntMap
 
KeySet() - Constructor for class edu.berkeley.nlp.lm.collections.TIntMap.KeySet
 
KneserNeyCounts() - Constructor for class edu.berkeley.nlp.lm.values.KneserNeyCountValueContainer.KneserNeyCounts
 
KneserNeyCountValueContainer - Class in edu.berkeley.nlp.lm.values
Stored type and token counts necessary for estimating a Kneser-Ney language model
KneserNeyCountValueContainer(int, int) - Constructor for class edu.berkeley.nlp.lm.values.KneserNeyCountValueContainer
 
KneserNeyCountValueContainer.KneserNeyCounts - Class in edu.berkeley.nlp.lm.values
Warning: type counts are stored internally as 32-bit ints.
kneserNeyDiscounts - Variable in class edu.berkeley.nlp.lm.ConfigOptions
 
KneserNeyFileWritingLmReaderCallback<W> - Class in edu.berkeley.nlp.lm.io
Class for producing a Kneser-Ney language model in ARPA format from raw text.
KneserNeyFileWritingLmReaderCallback(File, WordIndexer<W>) - Constructor for class edu.berkeley.nlp.lm.io.KneserNeyFileWritingLmReaderCallback
 
KneserNeyFileWritingLmReaderCallback(PrintWriter, WordIndexer<W>) - Constructor for class edu.berkeley.nlp.lm.io.KneserNeyFileWritingLmReaderCallback
 
KneserNeyLmReaderCallback<W> - Class in edu.berkeley.nlp.lm.io
Class for producing a Kneser-Ney language model in ARPA format from raw text.
KneserNeyLmReaderCallback(WordIndexer<W>, int) - Constructor for class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
KneserNeyLmReaderCallback(WordIndexer<W>, int, ConfigOptions) - Constructor for class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
kneserNeyMinCounts - Variable in class edu.berkeley.nlp.lm.ConfigOptions
 

L

leftDotTypeCounts - Variable in class edu.berkeley.nlp.lm.values.KneserNeyCountValueContainer.KneserNeyCounts
 
linearSearch(long, long, long, long, long, boolean) - Method in class edu.berkeley.nlp.lm.array.CustomWidthArray
 
linearSearch(long, long, long, long, long, boolean) - Method in class edu.berkeley.nlp.lm.array.LongArray
 
lineIterator(BufferedReader) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
lineIterator(String) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
LmContextInfo() - Constructor for class edu.berkeley.nlp.lm.ContextEncodedNgramLanguageModel.LmContextInfo
 
lmOrder - Variable in class edu.berkeley.nlp.lm.AbstractNgramLanguageModel
 
lmOrder - Variable in class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
LmReader<V,​C extends LmReaderCallback<V>> - Interface in edu.berkeley.nlp.lm.io
 
LmReaderCallback<V> - Interface in edu.berkeley.nlp.lm.io
Callback that is called for each n-gram in the collection
LmReaders - Class in edu.berkeley.nlp.lm.io
This class contains a number of static methods for reading/writing/estimating n-gram language models.
LmReaders() - Constructor for class edu.berkeley.nlp.lm.io.LmReaders
 
loadFactor - Static variable in class edu.berkeley.nlp.lm.collections.AbstractTMap
 
lock() - Method in class edu.berkeley.nlp.lm.collections.Indexer
 
lock() - Method in class edu.berkeley.nlp.lm.collections.TIntMap
 
locked - Variable in class edu.berkeley.nlp.lm.collections.AbstractTMap
 
locked - Variable in class edu.berkeley.nlp.lm.collections.Indexer
 
lockIndexer - Variable in class edu.berkeley.nlp.lm.ConfigOptions
 
Logger - Class in edu.berkeley.nlp.lm.util
Basic logging singleton class.
Logger() - Constructor for class edu.berkeley.nlp.lm.util.Logger
 
Logger.CompoundLogger - Class in edu.berkeley.nlp.lm.util
Convenience class for stringing together loggers.
Logger.LogInterface - Interface in edu.berkeley.nlp.lm.util
Logging interface.
Logger.NullLogger - Class in edu.berkeley.nlp.lm.util
Default logging goes nowhere.
Logger.SystemLogger - Class in edu.berkeley.nlp.lm.util
Logs to System.out and System.err
logs(String) - Static method in class edu.berkeley.nlp.lm.util.Logger
 
logs(String) - Method in class edu.berkeley.nlp.lm.util.Logger.SystemLogger
 
logs(String, Object...) - Method in class edu.berkeley.nlp.lm.util.Logger.CompoundLogger
 
logs(String, Object...) - Method in interface edu.berkeley.nlp.lm.util.Logger.LogInterface
Log a string, but only once in a while.
logs(String, Object...) - Static method in class edu.berkeley.nlp.lm.util.Logger
 
logs(String, Object...) - Method in class edu.berkeley.nlp.lm.util.Logger.NullLogger
 
logs(String, Object...) - Method in class edu.berkeley.nlp.lm.util.Logger.SystemLogger
 
logss(String) - Method in class edu.berkeley.nlp.lm.util.Logger.CompoundLogger
 
logss(String) - Method in interface edu.berkeley.nlp.lm.util.Logger.LogInterface
Always log this string.
logss(String) - Static method in class edu.berkeley.nlp.lm.util.Logger
 
logss(String) - Method in class edu.berkeley.nlp.lm.util.Logger.NullLogger
 
logss(String) - Method in class edu.berkeley.nlp.lm.util.Logger.SystemLogger
 
logss(String, Object...) - Method in class edu.berkeley.nlp.lm.util.Logger.CompoundLogger
 
logss(String, Object...) - Method in interface edu.berkeley.nlp.lm.util.Logger.LogInterface
 
logss(String, Object...) - Static method in class edu.berkeley.nlp.lm.util.Logger
 
logss(String, Object...) - Method in class edu.berkeley.nlp.lm.util.Logger.NullLogger
 
logss(String, Object...) - Method in class edu.berkeley.nlp.lm.util.Logger.SystemLogger
 
LongArray - Class in edu.berkeley.nlp.lm.array
 
LongArray(long) - Constructor for class edu.berkeley.nlp.lm.array.LongArray
 
LongArray.StaticMethods - Class in edu.berkeley.nlp.lm.array
 
LongHashSet - Class in edu.berkeley.nlp.lm.collections
Open address hash map with linear probing.
LongHashSet() - Constructor for class edu.berkeley.nlp.lm.collections.LongHashSet
 
LongHashSet(int) - Constructor for class edu.berkeley.nlp.lm.collections.LongHashSet
 
LongRef - Class in edu.berkeley.nlp.lm.util
 
LongRef(long) - Constructor for class edu.berkeley.nlp.lm.util.LongRef
 
LongRepresentable<T> - Interface in edu.berkeley.nlp.lm.collections
 
longSize() - Method in class edu.berkeley.nlp.lm.map.NgramMapWrapper
 
LongToIntHashMap - Class in edu.berkeley.nlp.lm.collections
Open address hash map with linear probing.
LongToIntHashMap() - Constructor for class edu.berkeley.nlp.lm.collections.LongToIntHashMap
 
LongToIntHashMap(int) - Constructor for class edu.berkeley.nlp.lm.collections.LongToIntHashMap
 
LongToIntHashMap.Entry - Class in edu.berkeley.nlp.lm.collections
 

M

main(String[]) - Static method in class edu.berkeley.nlp.lm.array.LongArray
 
main(String[]) - Static method in class edu.berkeley.nlp.lm.bits.BitUtils
 
main(String[]) - Static method in class edu.berkeley.nlp.lm.collections.Counter
 
main(String[]) - Static method in class edu.berkeley.nlp.lm.io.ComputeLogProbabilityOfTextStream
 
main(String[]) - Static method in class edu.berkeley.nlp.lm.io.MakeKneserNeyArpaFromText
 
main(String[]) - Static method in class edu.berkeley.nlp.lm.io.MakeLmBinaryFromArpa
 
main(String[]) - Static method in class edu.berkeley.nlp.lm.io.MakeLmBinaryFromGoogle
 
main(String[]) - Static method in class edu.berkeley.nlp.lm.io.MakeNgramMapBinaryFromGoogle
 
MakeKneserNeyArpaFromText - Class in edu.berkeley.nlp.lm.io
Estimates a Kneser-Ney language model from raw text, and writes the language model out in ARPA-format.
MakeKneserNeyArpaFromText() - Constructor for class edu.berkeley.nlp.lm.io.MakeKneserNeyArpaFromText
 
MakeLmBinaryFromArpa - Class in edu.berkeley.nlp.lm.io
Given a language model in ARPA format, builds a binary representation of the language model and writes it to disk.
MakeLmBinaryFromArpa() - Constructor for class edu.berkeley.nlp.lm.io.MakeLmBinaryFromArpa
 
MakeLmBinaryFromGoogle - Class in edu.berkeley.nlp.lm.io
Given a directory in Google n-grams format, builds a binary representation of a stupid-backoff language model language model and writes it to disk.
MakeLmBinaryFromGoogle() - Constructor for class edu.berkeley.nlp.lm.io.MakeLmBinaryFromGoogle
 
MakeNgramMapBinaryFromGoogle - Class in edu.berkeley.nlp.lm.io
Like MakeLmBinaryFromGoogle, except it only writes the NgramMap portion of the LM, meaning the binary does not contain the vocabulary.
MakeNgramMapBinaryFromGoogle() - Constructor for class edu.berkeley.nlp.lm.io.MakeNgramMapBinaryFromGoogle
 
map - Variable in class edu.berkeley.nlp.lm.StupidBackoffLm
 
mapType - Variable in class edu.berkeley.nlp.lm.collections.AbstractTMap
 
mark() - Method in class edu.berkeley.nlp.lm.bits.BitStream
Sets a mark at the current bit that can be returned to using rewindToMark.
max() - Method in class edu.berkeley.nlp.lm.collections.Counter
 
max() - Method in class edu.berkeley.nlp.lm.collections.TIntMap
 
max(long, long) - Static method in class edu.berkeley.nlp.lm.bits.BitUtils
 
min() - Method in class edu.berkeley.nlp.lm.collections.Counter
 
min(long, long) - Static method in class edu.berkeley.nlp.lm.bits.BitUtils
 
MosesPhraseTable - Class in edu.berkeley.nlp.lm.phrasetable
Experimental class for reading Moses phrase tables and storing them efficiently in memory using a trie.
MosesPhraseTable.TargetSideTranslation - Class in edu.berkeley.nlp.lm.phrasetable
 
MosesPhraseTableReader<W> - Class in edu.berkeley.nlp.lm.phrasetable
 
MosesPhraseTableReader(String, WordIndexer<W>) - Constructor for class edu.berkeley.nlp.lm.phrasetable.MosesPhraseTableReader
 
MosesPhraseTableReaderCallback<W> - Class in edu.berkeley.nlp.lm.phrasetable
Class for representing phrase tables efficiently in memory.
MosesPhraseTableReaderCallback(WordIndexer<W>) - Constructor for class edu.berkeley.nlp.lm.phrasetable.MosesPhraseTableReaderCallback
 
multAll(int) - Method in class edu.berkeley.nlp.lm.collections.TIntMap
 
MurmurHash - Class in edu.berkeley.nlp.lm.util
Taken/modified from http://d3s.mff.cuni.cz/~holub/sw/javamurmurhash/MurmurHash.java
MurmurHash() - Constructor for class edu.berkeley.nlp.lm.util.MurmurHash
 

N

name() - Method in annotation type edu.berkeley.nlp.lm.util.Annotations.Option
 
newLongArray(long, long) - Static method in class edu.berkeley.nlp.lm.array.LongArray.StaticMethods
 
newLongArray(long, long, long) - Static method in class edu.berkeley.nlp.lm.array.LongArray.StaticMethods
 
newPair(S, T) - Static method in class edu.berkeley.nlp.lm.util.Pair
 
next() - Method in class edu.berkeley.nlp.lm.collections.Iterators.IteratorIterator
 
next() - Method in class edu.berkeley.nlp.lm.collections.Iterators.Transform
 
next(int) - Method in class edu.berkeley.nlp.lm.bits.BitStream
Read and return next n bits.
nextBit() - Method in class edu.berkeley.nlp.lm.bits.BitStream
 
nextConsecutiveZeros() - Method in class edu.berkeley.nlp.lm.bits.BitStream
Reads a string of zeros followed by a 1.
NgramIterableWrapper<W,​V> - Class in edu.berkeley.nlp.lm.map
Wraps an NgramMap as an Iterable, so it is easy to iterate over the n-grams and associated values.
NgramIterableWrapper(NgramMap<V>, WordIndexer<W>) - Constructor for class edu.berkeley.nlp.lm.map.NgramIterableWrapper
 
NgramIterableWrapper(NgramMap<V>, WordIndexer<W>, int) - Constructor for class edu.berkeley.nlp.lm.map.NgramIterableWrapper
 
NgramLanguageModel<W> - Interface in edu.berkeley.nlp.lm
Base interface for an n-gram language model, which exposes only inefficient convenience methods.
NgramLanguageModel.StaticMethods - Class in edu.berkeley.nlp.lm
 
NgramMap<V> - Interface in edu.berkeley.nlp.lm.map
 
NgramMap.Entry<T> - Class in edu.berkeley.nlp.lm.map
 
NgramMapAddingCallback<V> - Class in edu.berkeley.nlp.lm.io
Reader callback which adds n-grams to an NgramMap
NgramMapAddingCallback(NgramMap<V>, List<int[]>) - Constructor for class edu.berkeley.nlp.lm.io.NgramMapAddingCallback
 
NgramMapWrapper<W,​V> - Class in edu.berkeley.nlp.lm.map
Wraps an NgramMap as a Java Map, with ngrams of all orders mixed together.
NgramMapWrapper(NgramMap<V>, WordIndexer<W>) - Constructor for class edu.berkeley.nlp.lm.map.NgramMapWrapper
 
NgramMapWrapper(NgramMap<V>, WordIndexer<W>, int) - Constructor for class edu.berkeley.nlp.lm.map.NgramMapWrapper
 
NgramOrderedLmReaderCallback<V> - Interface in edu.berkeley.nlp.lm.io
Callback that is called for each n-gram in the collection
ngrams - Variable in class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
NgramsForOrderIterableWrapper<W,​V> - Class in edu.berkeley.nlp.lm.map
Wraps an NgramMap as an Iterable, so it is easy to iterate over the n-grams of a particular order.
NgramsForOrderIterableWrapper(NgramMap<V>, WordIndexer<W>, int) - Constructor for class edu.berkeley.nlp.lm.map.NgramsForOrderIterableWrapper
 
NgramsForOrderMapWrapper<W,​V> - Class in edu.berkeley.nlp.lm.map
Wraps an NgramMap as a Java Map, but only ngrams of a particular order.
NgramsForOrderMapWrapper(NgramMap<V>, WordIndexer<W>, int) - Constructor for class edu.berkeley.nlp.lm.map.NgramsForOrderMapWrapper
 
normalize() - Method in class edu.berkeley.nlp.lm.collections.Counter
Destructively normalize this Counter in place.
NullLogger() - Constructor for class edu.berkeley.nlp.lm.util.Logger.NullLogger
 
num - Variable in class edu.berkeley.nlp.lm.collections.AbstractTMap
 
NUM_BITS_PER_BYTE - Static variable in class edu.berkeley.nlp.lm.map.AbstractNgramMap
 
NUM_SUFFIX_BITS - Variable in class edu.berkeley.nlp.lm.map.AbstractNgramMap
 
NUM_WORD_BITS - Variable in class edu.berkeley.nlp.lm.map.AbstractNgramMap
 
numBitsLeft() - Method in class edu.berkeley.nlp.lm.bits.BitStream
 
numBitsNeeded(long) - Static method in class edu.berkeley.nlp.lm.array.CustomWidthArray
 
numCollisions - Variable in class edu.berkeley.nlp.lm.collections.AbstractTMap
 
numValueBits(int) - Method in class edu.berkeley.nlp.lm.phrasetable.PhraseTableValueContainer
 
numValueBits(int) - Method in class edu.berkeley.nlp.lm.values.KneserNeyCountValueContainer
 
numValueBits(int) - Method in class edu.berkeley.nlp.lm.values.UnrankedUncompressedProbBackoffValueContainer
 
numValueBits(int) - Method in interface edu.berkeley.nlp.lm.values.ValueContainer
 
numWordBits - Variable in class edu.berkeley.nlp.lm.ConfigOptions
 
numWords() - Method in class edu.berkeley.nlp.lm.StringWordIndexer
 
numWords() - Method in interface edu.berkeley.nlp.lm.WordIndexer
Number of words that have been added so far

O

o(long) - Static method in class edu.berkeley.nlp.lm.array.LongArray
 
objects - Variable in class edu.berkeley.nlp.lm.collections.Indexer
 
offset - Variable in class edu.berkeley.nlp.lm.ContextEncodedNgramLanguageModel.LmContextInfo
Offset of context (prefix) of an n-gram
offsetDeltaRadix - Variable in class edu.berkeley.nlp.lm.ConfigOptions
 
oovWordLogProb - Variable in class edu.berkeley.nlp.lm.AbstractNgramLanguageModel
Fixed constant returned when computing the log probability for an n-gram whose last word is not in the vocabulary.
openIn(File) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
openIn(String) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
openInHard(File) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
openInHard(String) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
openObjIn(File) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
openObjIn(String) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
openObjOut(File) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
openObjOut(String) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
openOut(File) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
openOut(String) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
openOutEasy(File) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
openOutEasy(String) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
openOutHard(File) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
openOutHard(String) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
opts - Variable in class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
opts - Variable in class edu.berkeley.nlp.lm.map.AbstractNgramMap
 
order - Variable in class edu.berkeley.nlp.lm.ContextEncodedNgramLanguageModel.LmContextInfo
The (0-based) length of context (i.e.

P

Pair<F,​S> - Class in edu.berkeley.nlp.lm.util
A generic-typed pair of objects.
Pair(F, S) - Constructor for class edu.berkeley.nlp.lm.util.Pair
 
parse(C) - Method in interface edu.berkeley.nlp.lm.io.LmReader
 
parse(ArpaLmReaderCallback<ProbBackoffPair>) - Method in class edu.berkeley.nlp.lm.io.ArpaLmReader
Parse the ARPA file and populate the relevant fields of the enclosing ICSILanguageModel
parse(ArpaLmReaderCallback<ProbBackoffPair>) - Method in class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
parse(LmReaderCallback<LongRef>) - Method in class edu.berkeley.nlp.lm.io.TextReader
Reads newline-separated plain text from inputFiles, and writes an ARPA lm file to outputFile.
parse(NgramOrderedLmReaderCallback<LongRef>) - Method in class edu.berkeley.nlp.lm.io.GoogleLmReader
 
parse(MosesPhraseTableReaderCallback<W>) - Method in class edu.berkeley.nlp.lm.phrasetable.MosesPhraseTableReader
 
parseHeader() - Method in class edu.berkeley.nlp.lm.io.ArpaLmReader
 
parseNGrams(ArpaLmReaderCallback<ProbBackoffPair>) - Method in class edu.berkeley.nlp.lm.io.ArpaLmReader
 
PhraseTableCounts - Class in edu.berkeley.nlp.lm.phrasetable
 
PhraseTableCounts(float[]) - Constructor for class edu.berkeley.nlp.lm.phrasetable.PhraseTableCounts
 
PhraseTableValueContainer - Class in edu.berkeley.nlp.lm.phrasetable
Stored type and token counts necessary for estimating a Kneser-Ney language model
PhraseTableValueContainer(int, int) - Constructor for class edu.berkeley.nlp.lm.phrasetable.PhraseTableValueContainer
 
PhraseTableValueContainer.FeaturePhraseTableValues - Class in edu.berkeley.nlp.lm.phrasetable
 
PhraseTableValueContainer.PhraseTableValues - Interface in edu.berkeley.nlp.lm.phrasetable
 
PhraseTableValueContainer.TargetTranslationsValues - Class in edu.berkeley.nlp.lm.phrasetable
 
primitiveEntries() - Method in class edu.berkeley.nlp.lm.collections.LongToIntHashMap
 
prob - Variable in class edu.berkeley.nlp.lm.values.ProbBackoffPair
 
ProbBackoffPair - Class in edu.berkeley.nlp.lm.values
 
ProbBackoffPair(float, float) - Constructor for class edu.berkeley.nlp.lm.values.ProbBackoffPair
 
ProbBackoffPair(long) - Constructor for class edu.berkeley.nlp.lm.values.ProbBackoffPair
 
ProbBackoffValueContainer - Interface in edu.berkeley.nlp.lm.values
 
probOf(long) - Static method in class edu.berkeley.nlp.lm.values.ProbBackoffPair
 
prune(Set<E>) - Method in class edu.berkeley.nlp.lm.collections.Counter
 
pruneExcept(Set<E>) - Method in class edu.berkeley.nlp.lm.collections.Counter
 
pruneKeysBelowThreshold(double) - Method in class edu.berkeley.nlp.lm.collections.Counter
 
put(int[], int, int, T) - Method in class edu.berkeley.nlp.lm.map.CompressedNgramMap
 
put(int[], int, int, T) - Method in class edu.berkeley.nlp.lm.map.HashNgramMap
 
put(int[], int, int, V) - Method in interface edu.berkeley.nlp.lm.map.NgramMap
 
put(long) - Method in class edu.berkeley.nlp.lm.collections.LongHashSet
 
put(E, double, boolean) - Method in class edu.berkeley.nlp.lm.collections.Counter
Set the count for the given key if it is larger than the previous one;
put(Long, int) - Method in class edu.berkeley.nlp.lm.collections.LongToIntHashMap
 
put(T, int) - Method in class edu.berkeley.nlp.lm.collections.TIntMap
 
put(T, int, boolean) - Method in class edu.berkeley.nlp.lm.collections.TIntMap
 
putAll(double) - Method in class edu.berkeley.nlp.lm.collections.Counter
 
putAll(int) - Method in class edu.berkeley.nlp.lm.collections.TIntMap
 
putCached(int[], int, int, float, int) - Method in class edu.berkeley.nlp.lm.cache.ArrayEncodedDirectMappedLmCache
 
putCached(int[], int, int, float, int) - Method in interface edu.berkeley.nlp.lm.cache.ArrayEncodedLmCache
 
putCached(long, int, int, float, int, ContextEncodedNgramLanguageModel.LmContextInfo) - Method in class edu.berkeley.nlp.lm.cache.ContextEncodedDirectMappedLmCache
 
putCached(long, int, int, float, int, ContextEncodedNgramLanguageModel.LmContextInfo) - Method in interface edu.berkeley.nlp.lm.cache.ContextEncodedLmCache
 
putWithOffset(int[], int, int, long, T) - Method in class edu.berkeley.nlp.lm.map.HashNgramMap
Warning: does not rehash if load factor is exceeded, must call rehashIfNecessary explicitly.
putWithOffsetAndSuffix(int[], int, int, long, long, T) - Method in class edu.berkeley.nlp.lm.map.HashNgramMap
Warning: does not rehash if load factor is exceeded, must call rehashIfNecessary explicitly.

R

readArrayEncodedLmFromArpa(LmReader<ProbBackoffPair, ArpaLmReaderCallback<ProbBackoffPair>>, boolean, WordIndexer<W>, ConfigOptions) - Static method in class edu.berkeley.nlp.lm.io.LmReaders
Reads an array-encoded language model from an ARPA lm file.
readArrayEncodedLmFromArpa(String, boolean) - Static method in class edu.berkeley.nlp.lm.io.LmReaders
 
readArrayEncodedLmFromArpa(String, boolean, WordIndexer<W>) - Static method in class edu.berkeley.nlp.lm.io.LmReaders
 
readArrayEncodedLmFromArpa(String, boolean, WordIndexer<W>, ConfigOptions, int) - Static method in class edu.berkeley.nlp.lm.io.LmReaders
 
readContextEncodedKneserNeyLmFromTextFile(List<String>, WordIndexer<W>, int, ConfigOptions) - Static method in class edu.berkeley.nlp.lm.io.LmReaders
Builds a context-encoded LM from raw text.
readContextEncodedKneserNeyLmFromTextFile(List<String>, WordIndexer<W>, int, ConfigOptions, File) - Static method in class edu.berkeley.nlp.lm.io.LmReaders
 
readContextEncodedLmFromArpa(LmReader<ProbBackoffPair, ArpaLmReaderCallback<ProbBackoffPair>>, WordIndexer<W>, ConfigOptions) - Static method in class edu.berkeley.nlp.lm.io.LmReaders
 
readContextEncodedLmFromArpa(String) - Static method in class edu.berkeley.nlp.lm.io.LmReaders
 
readContextEncodedLmFromArpa(String, WordIndexer<W>) - Static method in class edu.berkeley.nlp.lm.io.LmReaders
 
readContextEncodedLmFromArpa(String, WordIndexer<W>, ConfigOptions, int) - Static method in class edu.berkeley.nlp.lm.io.LmReaders
Reads a context-encoded language model from an ARPA lm file.
readFromFile(String) - Static method in class edu.berkeley.nlp.lm.phrasetable.MosesPhraseTable
 
readGoogleLmBinary(String, WordIndexer<W>, String) - Static method in class edu.berkeley.nlp.lm.io.LmReaders
Reads in a pre-built Google n-gram binary.
readGoogleLmBinary(String, String) - Static method in class edu.berkeley.nlp.lm.io.LmReaders
 
readKneserNeyLmFromTextFile(List<String>, WordIndexer<W>, int, boolean, ConfigOptions, File) - Static method in class edu.berkeley.nlp.lm.io.LmReaders
 
readKneserNeyLmFromTextFile(List<String>, WordIndexer<W>, int, ConfigOptions, boolean) - Static method in class edu.berkeley.nlp.lm.io.LmReaders
Builds an array-encoded LM from raw text.
readLine() - Method in class edu.berkeley.nlp.lm.io.ArpaLmReader
 
readLine(String) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
readLineEasy(String) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
readLines(BufferedReader) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
readLines(String) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
readLinesEasy(String) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
readLinesHard(String) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
readLmBinary(String) - Static method in class edu.berkeley.nlp.lm.io.LmReaders
Reads a binary file representing an LM.
readLmFromGoogleNgramDir(String, boolean, boolean) - Static method in class edu.berkeley.nlp.lm.io.LmReaders
 
readLmFromGoogleNgramDir(String, boolean, boolean, WordIndexer<W>, ConfigOptions) - Static method in class edu.berkeley.nlp.lm.io.LmReaders
Reads a stupid backoff lm from a directory with n-gram counts in the format used by Google n-grams.
readNgramMapFromBinary(String, String) - Static method in class edu.berkeley.nlp.lm.io.LmReaders
 
readNgramMapFromBinary(String, String, WordIndexer<W>) - Static method in class edu.berkeley.nlp.lm.io.LmReaders
 
readNgramMapFromGoogleNgramDir(String, boolean) - Static method in class edu.berkeley.nlp.lm.io.LmReaders
 
readNgramMapFromGoogleNgramDir(String, boolean, WordIndexer<W>) - Static method in class edu.berkeley.nlp.lm.io.LmReaders
 
readObjFile(File) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
readObjFile(String) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
readObjFileEasy(File) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
readObjFileEasy(String) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
readObjFileHard(File) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
readObjFileHard(String) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
rehashIfNecessary(int) - Method in class edu.berkeley.nlp.lm.map.HashNgramMap
 
remove() - Method in class edu.berkeley.nlp.lm.collections.Iterators.IteratorIterator
 
remove() - Method in class edu.berkeley.nlp.lm.collections.Iterators.Transform
 
remove(long) - Method in class edu.berkeley.nlp.lm.collections.LongHashSet
 
remove(Object) - Method in class edu.berkeley.nlp.lm.collections.TIntMap.EntrySet
 
remove(Object) - Method in class edu.berkeley.nlp.lm.collections.TIntMap.KeySet
 
removeKey(E) - Method in class edu.berkeley.nlp.lm.collections.Counter
 
removeKeyFromEntries(E) - Method in class edu.berkeley.nlp.lm.collections.Counter
 
required() - Method in annotation type edu.berkeley.nlp.lm.util.Annotations.Option
 
restrict(Set<T>) - Method in class edu.berkeley.nlp.lm.collections.TIntMap
 
rewind(int) - Method in class edu.berkeley.nlp.lm.bits.BitStream
 
rewindToMark() - Method in class edu.berkeley.nlp.lm.bits.BitStream
 
rightDotTypeCounts - Variable in class edu.berkeley.nlp.lm.values.KneserNeyCountValueContainer.KneserNeyCounts
 
roundBits - Static variable in class edu.berkeley.nlp.lm.ConfigOptions
 

S

sample() - Method in class edu.berkeley.nlp.lm.collections.Counter
Will return a sample from the counter, will throw exception if any of the counts are < 0.0 or if the totalCount() <= 0.0
sample(Random) - Method in class edu.berkeley.nlp.lm.collections.Counter
Will return a sample from the counter, will throw exception if any of the counts are < 0.0 or if the totalCount() <= 0.0
sample(Random, NgramLanguageModel<W>) - Static method in class edu.berkeley.nlp.lm.NgramLanguageModel.StaticMethods
Samples from this language model.
sample(Random, NgramLanguageModel<W>, double) - Static method in class edu.berkeley.nlp.lm.NgramLanguageModel.StaticMethods
 
scale(double) - Method in class edu.berkeley.nlp.lm.collections.Counter
 
scale(T, int) - Method in class edu.berkeley.nlp.lm.collections.TIntMap
 
scaledClone(double) - Method in class edu.berkeley.nlp.lm.collections.Counter
 
scoreSentence(List<T>, ArrayEncodedNgramLanguageModel<T>) - Static method in class edu.berkeley.nlp.lm.ArrayEncodedNgramLanguageModel.DefaultImplementations
 
scoreSentence(List<T>, ContextEncodedNgramLanguageModel<T>) - Static method in class edu.berkeley.nlp.lm.ContextEncodedNgramLanguageModel.DefaultImplementations
 
scoreSentence(List<W>) - Method in class edu.berkeley.nlp.lm.AbstractArrayEncodedNgramLanguageModel
 
scoreSentence(List<W>) - Method in class edu.berkeley.nlp.lm.AbstractContextEncodedNgramLanguageModel
 
scoreSentence(List<W>) - Method in class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
scoreSentence(List<W>) - Method in interface edu.berkeley.nlp.lm.NgramLanguageModel
Scores a complete sentence, taking appropriate care with the start- and end-of-sentence symbols.
serialVersionUID - Static variable in class edu.berkeley.nlp.lm.collections.AbstractTMap
 
serialVersionUID - Static variable in class edu.berkeley.nlp.lm.collections.TIntMap
 
serialVersionUID - Static variable in class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
set(long, long) - Method in class edu.berkeley.nlp.lm.array.CustomWidthArray
 
set(long, long) - Method in class edu.berkeley.nlp.lm.array.LongArray
 
set(long, long, int, int) - Method in class edu.berkeley.nlp.lm.array.CustomWidthArray
 
setAllCounts(double) - Method in class edu.berkeley.nlp.lm.collections.Counter
Sets all counts to the given value, but does not remove any keys
setAndGrowIfNeeded(long, long) - Method in class edu.berkeley.nlp.lm.array.CustomWidthArray
 
setAndGrowIfNeeded(long, long) - Method in class edu.berkeley.nlp.lm.array.LongArray
 
setAndGrowIfNeeded(long, long, int, int) - Method in class edu.berkeley.nlp.lm.array.CustomWidthArray
 
setAndGrowIfNeededFill(long, long) - Method in class edu.berkeley.nlp.lm.array.LongArray
 
setCharEncoding(String) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
setCount(E, double) - Method in class edu.berkeley.nlp.lm.collections.Counter
Set the count for the given key, clobbering any previous count.
setDefaultCount(double) - Method in class edu.berkeley.nlp.lm.collections.Counter
 
setDirty(boolean) - Method in class edu.berkeley.nlp.lm.collections.Counter
 
setEndSymbol(String) - Method in class edu.berkeley.nlp.lm.StringWordIndexer
 
setEndSymbol(W) - Method in interface edu.berkeley.nlp.lm.WordIndexer
 
setFromOtherValues(ValueContainer<PhraseTableValueContainer.PhraseTableValues>) - Method in class edu.berkeley.nlp.lm.phrasetable.PhraseTableValueContainer
 
setFromOtherValues(ValueContainer<LongRef>) - Method in class edu.berkeley.nlp.lm.values.CountValueContainer
 
setFromOtherValues(ValueContainer<KneserNeyCountValueContainer.KneserNeyCounts>) - Method in class edu.berkeley.nlp.lm.values.KneserNeyCountValueContainer
 
setFromOtherValues(ValueContainer<ProbBackoffPair>) - Method in class edu.berkeley.nlp.lm.values.CompressibleProbBackoffValueContainer
 
setFromOtherValues(ValueContainer<ProbBackoffPair>) - Method in class edu.berkeley.nlp.lm.values.UncompressedProbBackoffValueContainer
 
setFromOtherValues(ValueContainer<ProbBackoffPair>) - Method in class edu.berkeley.nlp.lm.values.UnrankedUncompressedProbBackoffValueContainer
 
setFromOtherValues(ValueContainer<V>) - Method in interface edu.berkeley.nlp.lm.values.ValueContainer
Destructively sets internal storage from another object.
setGlobalLogger(Logger.LogInterface) - Static method in class edu.berkeley.nlp.lm.util.Logger
 
setHighInt(long, int) - Static method in class edu.berkeley.nlp.lm.bits.BitUtils
 
setLoadFactor(double) - Method in class edu.berkeley.nlp.lm.collections.LongHashSet
 
setLoadFactor(double) - Method in class edu.berkeley.nlp.lm.collections.LongToIntHashMap
 
setLogger(Logger.LogInterface) - Static method in class edu.berkeley.nlp.lm.util.Logger
 
setLowInt(long, int) - Static method in class edu.berkeley.nlp.lm.bits.BitUtils
 
setMap(NgramMap<PhraseTableValueContainer.PhraseTableValues>) - Method in class edu.berkeley.nlp.lm.phrasetable.PhraseTableValueContainer
 
setMap(NgramMap<KneserNeyCountValueContainer.KneserNeyCounts>) - Method in class edu.berkeley.nlp.lm.values.KneserNeyCountValueContainer
 
setMap(NgramMap<ProbBackoffPair>) - Method in class edu.berkeley.nlp.lm.values.UnrankedUncompressedProbBackoffValueContainer
 
setMap(NgramMap<V>) - Method in interface edu.berkeley.nlp.lm.values.ValueContainer
Initializes a value container with the map that contains it
setMaxCount(E, double) - Method in class edu.berkeley.nlp.lm.collections.Counter
Set's the key's count to the maximum of the current count and val.
setMinCount(E, double) - Method in class edu.berkeley.nlp.lm.collections.Counter
Set's the key's count to the minimum of the current count and val.
setOovWordLogProb(float) - Method in class edu.berkeley.nlp.lm.AbstractNgramLanguageModel
 
setOovWordLogProb(float) - Method in class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
setOovWordLogProb(float) - Method in interface edu.berkeley.nlp.lm.NgramLanguageModel
Sets the (log) probability for an OOV word.
setSizeAtLeast(long, int) - Method in class edu.berkeley.nlp.lm.phrasetable.PhraseTableValueContainer
 
setSizeAtLeast(long, int) - Method in class edu.berkeley.nlp.lm.values.KneserNeyCountValueContainer
 
setSizeAtLeast(long, int) - Method in class edu.berkeley.nlp.lm.values.UnrankedUncompressedProbBackoffValueContainer
 
setSizeAtLeast(long, int) - Method in interface edu.berkeley.nlp.lm.values.ValueContainer
Sets internal storage for size for a particular n-gram order
setStartSymbol(String) - Method in class edu.berkeley.nlp.lm.StringWordIndexer
 
setStartSymbol(W) - Method in interface edu.berkeley.nlp.lm.WordIndexer
 
setUnkSymbol(String) - Method in class edu.berkeley.nlp.lm.StringWordIndexer
 
setUnkSymbol(W) - Method in interface edu.berkeley.nlp.lm.WordIndexer
 
setValue(int) - Method in class edu.berkeley.nlp.lm.collections.TIntMap.Entry
 
setValue(Integer) - Method in class edu.berkeley.nlp.lm.collections.LongToIntHashMap.Entry
 
shift(long, long, int) - Method in class edu.berkeley.nlp.lm.array.LongArray
 
size() - Method in class edu.berkeley.nlp.lm.array.CustomWidthArray
 
size() - Method in class edu.berkeley.nlp.lm.array.LongArray
 
size() - Method in class edu.berkeley.nlp.lm.bits.BitList
 
size() - Method in class edu.berkeley.nlp.lm.collections.BoundedList
 
size() - Method in class edu.berkeley.nlp.lm.collections.Counter
The number of entries in the counter (not the total count -- use totalCount() instead).
size() - Method in class edu.berkeley.nlp.lm.collections.Indexer
Returns the number of objects indexed.
size() - Method in class edu.berkeley.nlp.lm.collections.LongHashSet
 
size() - Method in class edu.berkeley.nlp.lm.collections.LongToIntHashMap
 
size() - Method in class edu.berkeley.nlp.lm.collections.TIntMap.EntrySet
 
size() - Method in class edu.berkeley.nlp.lm.collections.TIntMap.KeySet
 
size() - Method in class edu.berkeley.nlp.lm.collections.TIntMap
 
size() - Method in class edu.berkeley.nlp.lm.collections.TIntMap.ValueCollection
 
size() - Method in class edu.berkeley.nlp.lm.map.NgramIterableWrapper
 
size() - Method in class edu.berkeley.nlp.lm.map.NgramsForOrderIterableWrapper
 
sort(LongArray, long, long, int) - Method in class edu.berkeley.nlp.lm.map.CompressedNgramMap
 
SORTED_LIST - edu.berkeley.nlp.lm.collections.AbstractTMap.MapType
 
START_SYMBOL - Static variable in class edu.berkeley.nlp.lm.io.ArpaLmReader
 
startIndex - Variable in class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
 
startTrack(String) - Method in class edu.berkeley.nlp.lm.util.Logger.CompoundLogger
 
startTrack(String) - Method in interface edu.berkeley.nlp.lm.util.Logger.LogInterface
Start a track (a function, or some other logical unit of computation) with a name given by s.
startTrack(String) - Method in class edu.berkeley.nlp.lm.util.Logger.NullLogger
 
startTrack(String) - Method in class edu.berkeley.nlp.lm.util.Logger.SystemLogger
 
startTrack(String, Object...) - Static method in class edu.berkeley.nlp.lm.util.Logger
 
StaticMethods() - Constructor for class edu.berkeley.nlp.lm.array.LongArray.StaticMethods
 
StaticMethods() - Constructor for class edu.berkeley.nlp.lm.NgramLanguageModel.StaticMethods
 
StaticMethods() - Constructor for class edu.berkeley.nlp.lm.WordIndexer.StaticMethods
 
storeRankedProbBackoffs - Variable in class edu.berkeley.nlp.lm.ConfigOptions
 
storeSuffixoffsets() - Method in class edu.berkeley.nlp.lm.phrasetable.PhraseTableValueContainer
 
storeSuffixoffsets() - Method in class edu.berkeley.nlp.lm.values.KneserNeyCountValueContainer
 
storeSuffixoffsets() - Method in class edu.berkeley.nlp.lm.values.UnrankedUncompressedProbBackoffValueContainer
 
storeSuffixoffsets() - Method in interface edu.berkeley.nlp.lm.values.ValueContainer
 
StringWordIndexer - Class in edu.berkeley.nlp.lm
Implementation of a WordIndexer in which words are represented as strings.
StringWordIndexer() - Constructor for class edu.berkeley.nlp.lm.StringWordIndexer
 
StrUtils - Class in edu.berkeley.nlp.lm.util
 
StrUtils() - Constructor for class edu.berkeley.nlp.lm.util.StrUtils
 
stupidBackoffAlpha - Variable in class edu.berkeley.nlp.lm.ConfigOptions
 
StupidBackoffLm<W> - Class in edu.berkeley.nlp.lm
Language model implementation which uses stupid backoff (Brants et al., 2007) computation.
StupidBackoffLm(int, WordIndexer<W>, NgramMap<LongRef>, ConfigOptions) - Constructor for class edu.berkeley.nlp.lm.StupidBackoffLm
 
subList(int, int) - Method in class edu.berkeley.nlp.lm.collections.BoundedList
 
SUFFIX_BIT_MASK - Variable in class edu.berkeley.nlp.lm.map.AbstractNgramMap
 
sum() - Method in class edu.berkeley.nlp.lm.collections.TIntMap
 
swap(long, long, int) - Method in interface edu.berkeley.nlp.lm.values.CompressibleValueContainer
Swaps values at offsets a and b.
swap(long, long, LongArray, int) - Method in class edu.berkeley.nlp.lm.map.CompressedNgramMap
 
swap(LongArray, long, long) - Method in class edu.berkeley.nlp.lm.map.CompressedNgramMap
 
switchToHashTable() - Method in class edu.berkeley.nlp.lm.collections.TIntMap
 
switchToSortedList() - Method in class edu.berkeley.nlp.lm.collections.TIntMap
 
SystemLogger() - Constructor for class edu.berkeley.nlp.lm.util.Logger.SystemLogger
 
SystemLogger(PrintStream, PrintStream) - Constructor for class edu.berkeley.nlp.lm.util.Logger.SystemLogger
 
SystemLogger(String, String) - Constructor for class edu.berkeley.nlp.lm.util.Logger.SystemLogger
 

T

tags() - Method in annotation type edu.berkeley.nlp.lm.util.Annotations.Option
 
TargetSideTranslation() - Constructor for class edu.berkeley.nlp.lm.phrasetable.MosesPhraseTable.TargetSideTranslation
 
TargetTranslationsValues() - Constructor for class edu.berkeley.nlp.lm.phrasetable.PhraseTableValueContainer.TargetTranslationsValues
 
TextReader<W> - Class in edu.berkeley.nlp.lm.io
Class for reading raw text files.
TextReader(Iterable<String>, WordIndexer<W>) - Constructor for class edu.berkeley.nlp.lm.io.TextReader
 
TextReader(List<String>, WordIndexer<W>) - Constructor for class edu.berkeley.nlp.lm.io.TextReader
 
TIntMap<T extends java.lang.Comparable> - Class in edu.berkeley.nlp.lm.collections
Provides a map from objects to non-negative integers.
TIntMap() - Constructor for class edu.berkeley.nlp.lm.collections.TIntMap
 
TIntMap(int) - Constructor for class edu.berkeley.nlp.lm.collections.TIntMap
 
TIntMap(AbstractTMap.Functionality<T>) - Constructor for class edu.berkeley.nlp.lm.collections.TIntMap
 
TIntMap(AbstractTMap.Functionality<T>, int) - Constructor for class edu.berkeley.nlp.lm.collections.TIntMap
expectedSize: expected number of entries we're going to have in the map.
TIntMap(AbstractTMap<T>) - Constructor for class edu.berkeley.nlp.lm.collections.TIntMap
 
TIntMap.Entry - Class in edu.berkeley.nlp.lm.collections
 
TIntMap.EntrySet - Class in edu.berkeley.nlp.lm.collections
 
TIntMap.EntryValueComparator - Class in edu.berkeley.nlp.lm.collections
 
TIntMap.KeySet - Class in edu.berkeley.nlp.lm.collections
 
TIntMap.ValueCollection - Class in edu.berkeley.nlp.lm.collections
 
toArray(WordIndexer<W>, List<W>) - Static method in class edu.berkeley.nlp.lm.WordIndexer.StaticMethods
Converts an object representation to an int array.
toArrayFromStrings(WordIndexer<W>, List<String>) - Static method in class edu.berkeley.nlp.lm.WordIndexer.StaticMethods
Converts an string representation to an int array, adding to the indexer.
toIntArray(List<T>, ArrayEncodedNgramLanguageModel<T>) - Static method in class edu.berkeley.nlp.lm.NgramLanguageModel.StaticMethods
 
tokenCounts - Variable in class edu.berkeley.nlp.lm.values.KneserNeyCountValueContainer.KneserNeyCounts
 
toList(WordIndexer<W>, int[]) - Static method in class edu.berkeley.nlp.lm.WordIndexer.StaticMethods
 
toList(WordIndexer<W>, int[], int, int) - Static method in class edu.berkeley.nlp.lm.WordIndexer.StaticMethods
Converts an int representation of an n-gram to a list.
toLogSpace() - Method in class edu.berkeley.nlp.lm.collections.Counter
 
toObjectList(int[], ArrayEncodedNgramLanguageModel<T>) - Static method in class edu.berkeley.nlp.lm.NgramLanguageModel.StaticMethods
 
toSorted() - Method in class edu.berkeley.nlp.lm.collections.LongToIntHashMap
 
toString() - Method in class edu.berkeley.nlp.lm.bits.BitList
 
toString() - Method in class edu.berkeley.nlp.lm.collections.Counter
Returns a string representation with the keys ordered by decreasing counts.
toString() - Method in class edu.berkeley.nlp.lm.collections.LongHashSet
 
toString() - Method in class edu.berkeley.nlp.lm.collections.LongToIntHashMap
 
toString() - Method in class edu.berkeley.nlp.lm.collections.TIntMap
 
toString() - Method in class edu.berkeley.nlp.lm.phrasetable.MosesPhraseTable.TargetSideTranslation
 
toString() - Method in class edu.berkeley.nlp.lm.util.LongRef
 
toString() - Method in class edu.berkeley.nlp.lm.util.Pair
 
toString() - Method in class edu.berkeley.nlp.lm.values.ProbBackoffPair
 
toStringSortedByKeys() - Method in class edu.berkeley.nlp.lm.collections.Counter
 
totalCount() - Method in class edu.berkeley.nlp.lm.collections.Counter
Finds the total of all counts in the counter.
transform(S) - Method in class edu.berkeley.nlp.lm.collections.Iterators.Transform
 
Transform(Iterator<S>) - Constructor for class edu.berkeley.nlp.lm.collections.Iterators.Transform
 
trgWords - Variable in class edu.berkeley.nlp.lm.phrasetable.MosesPhraseTable.TargetSideTranslation
 
trim() - Method in class edu.berkeley.nlp.lm.array.CustomWidthArray
 
trim() - Method in class edu.berkeley.nlp.lm.array.LongArray
 
trim() - Method in class edu.berkeley.nlp.lm.collections.Indexer
Save some space my compacting underlying maps and lists.
trim() - Method in class edu.berkeley.nlp.lm.map.CompressedNgramMap
 
trim() - Method in class edu.berkeley.nlp.lm.map.HashNgramMap
 
trim() - Method in interface edu.berkeley.nlp.lm.map.NgramMap
 
trim() - Method in class edu.berkeley.nlp.lm.phrasetable.PhraseTableValueContainer
 
trim() - Method in class edu.berkeley.nlp.lm.values.CompressibleProbBackoffValueContainer
 
trim() - Method in class edu.berkeley.nlp.lm.values.CountValueContainer
 
trim() - Method in class edu.berkeley.nlp.lm.values.KneserNeyCountValueContainer
 
trim() - Method in class edu.berkeley.nlp.lm.values.UncompressedProbBackoffValueContainer
 
trim() - Method in class edu.berkeley.nlp.lm.values.UnrankedUncompressedProbBackoffValueContainer
 
trim() - Method in interface edu.berkeley.nlp.lm.values.ValueContainer
Final clean up of storage.
trimAfterNgram(int, long) - Method in class edu.berkeley.nlp.lm.phrasetable.PhraseTableValueContainer
 
trimAfterNgram(int, long) - Method in class edu.berkeley.nlp.lm.values.CountValueContainer
 
trimAfterNgram(int, long) - Method in class edu.berkeley.nlp.lm.values.KneserNeyCountValueContainer
 
trimAfterNgram(int, long) - Method in class edu.berkeley.nlp.lm.values.UnrankedUncompressedProbBackoffValueContainer
 
trimAfterNgram(int, long) - Method in interface edu.berkeley.nlp.lm.values.ValueContainer
Clear storage after an n-gram order is complete
trimAndLock() - Method in class edu.berkeley.nlp.lm.StringWordIndexer
 
trimAndLock() - Method in interface edu.berkeley.nlp.lm.WordIndexer
Informs the implementation that no more words can be added to the vocabulary.
trimToSize(long) - Method in class edu.berkeley.nlp.lm.array.CustomWidthArray
 
trimToSize(long) - Method in class edu.berkeley.nlp.lm.array.LongArray
 

U

UncompressedProbBackoffValueContainer - Class in edu.berkeley.nlp.lm.values
 
UncompressedProbBackoffValueContainer(int, boolean, long[], long[], LongToIntHashMap, int) - Constructor for class edu.berkeley.nlp.lm.values.UncompressedProbBackoffValueContainer
 
UncompressedProbBackoffValueContainer(LongToIntHashMap, int, boolean, long[]) - Constructor for class edu.berkeley.nlp.lm.values.UncompressedProbBackoffValueContainer
 
UNK_SYMBOL - Static variable in class edu.berkeley.nlp.lm.io.ArpaLmReader
 
unknownWordLogProb - Variable in class edu.berkeley.nlp.lm.ConfigOptions
 
UnrankedUncompressedProbBackoffValueContainer - Class in edu.berkeley.nlp.lm.values
 
UnrankedUncompressedProbBackoffValueContainer(boolean, long[]) - Constructor for class edu.berkeley.nlp.lm.values.UnrankedUncompressedProbBackoffValueContainer
 
useValueStoringArray() - Method in class edu.berkeley.nlp.lm.values.UncompressedProbBackoffValueContainer
 

V

value - Variable in class edu.berkeley.nlp.lm.collections.LongToIntHashMap.Entry
 
value - Variable in class edu.berkeley.nlp.lm.map.NgramMap.Entry
 
value - Variable in class edu.berkeley.nlp.lm.util.LongRef
 
ValueCollection() - Constructor for class edu.berkeley.nlp.lm.collections.TIntMap.ValueCollection
 
ValueContainer<V> - Interface in edu.berkeley.nlp.lm.values
Manages storage of arbitrary values in an NgramMap
valueOf(String) - Static method in enum edu.berkeley.nlp.lm.collections.AbstractTMap.MapType
Returns the enum constant of this type with the specified name.
valueRadix - Variable in class edu.berkeley.nlp.lm.ConfigOptions
 
values - Variable in class edu.berkeley.nlp.lm.map.AbstractNgramMap
 
values() - Static method in enum edu.berkeley.nlp.lm.collections.AbstractTMap.MapType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Method in class edu.berkeley.nlp.lm.collections.Counter
 
values() - Method in class edu.berkeley.nlp.lm.collections.TIntMap
 
variableCompress(long, int) - Static method in class edu.berkeley.nlp.lm.bits.CompressionUtils
 
variableDecompress(BitStream, int) - Static method in class edu.berkeley.nlp.lm.bits.CompressionUtils
 
VariableLengthBitCompressor - Class in edu.berkeley.nlp.lm.bits
 
VariableLengthBitCompressor(int) - Constructor for class edu.berkeley.nlp.lm.bits.VariableLengthBitCompressor
 

W

warn(String) - Method in class edu.berkeley.nlp.lm.util.Logger.CompoundLogger
 
warn(String) - Method in interface edu.berkeley.nlp.lm.util.Logger.LogInterface
 
warn(String) - Method in class edu.berkeley.nlp.lm.util.Logger.NullLogger
 
warn(String) - Method in class edu.berkeley.nlp.lm.util.Logger.SystemLogger
 
warn(String) - Static method in class edu.berkeley.nlp.lm.util.Logger
 
warn(String, Object...) - Method in class edu.berkeley.nlp.lm.util.Logger.CompoundLogger
 
warn(String, Object...) - Method in interface edu.berkeley.nlp.lm.util.Logger.LogInterface
 
warn(String, Object...) - Method in class edu.berkeley.nlp.lm.util.Logger.NullLogger
 
warn(String, Object...) - Method in class edu.berkeley.nlp.lm.util.Logger.SystemLogger
 
warn(String, Object...) - Static method in class edu.berkeley.nlp.lm.util.Logger
 
WORD_BIT_MASK - Variable in class edu.berkeley.nlp.lm.map.AbstractNgramMap
 
wordHasBigrams(int) - Method in interface edu.berkeley.nlp.lm.map.ContextEncodedNgramMap
 
wordHasBigrams(int) - Method in class edu.berkeley.nlp.lm.map.HashNgramMap
 
wordIndexer - Variable in class edu.berkeley.nlp.lm.io.KneserNeyLmReaderCallback
This array represents the discount used for each ngram order.
WordIndexer<W> - Interface in edu.berkeley.nlp.lm
Enumerates words in the vocabulary of a language model.
WordIndexer.StaticMethods - Class in edu.berkeley.nlp.lm
 
wordOf(long) - Method in class edu.berkeley.nlp.lm.map.AbstractNgramMap
 
wrapWithCacheNotThreadSafe(ArrayEncodedNgramLanguageModel<W>) - Static method in class edu.berkeley.nlp.lm.cache.ArrayEncodedCachingLmWrapper
To use this wrapper in a multithreaded environment, you should create one wrapper per thread.
wrapWithCacheNotThreadSafe(ArrayEncodedNgramLanguageModel<W>, int) - Static method in class edu.berkeley.nlp.lm.cache.ArrayEncodedCachingLmWrapper
 
wrapWithCacheNotThreadSafe(ContextEncodedNgramLanguageModel<T>) - Static method in class edu.berkeley.nlp.lm.cache.ContextEncodedCachingLmWrapper
This type of caching is only threadsafe if you have one cache wrapper per thread.
wrapWithCacheNotThreadSafe(ContextEncodedNgramLanguageModel<T>, int) - Static method in class edu.berkeley.nlp.lm.cache.ContextEncodedCachingLmWrapper
 
wrapWithCacheThreadSafe(ArrayEncodedNgramLanguageModel<W>) - Static method in class edu.berkeley.nlp.lm.cache.ArrayEncodedCachingLmWrapper
This type of caching is threadsafe and (internally) maintains a separate cache for each thread that calls it.
wrapWithCacheThreadSafe(ArrayEncodedNgramLanguageModel<W>, int) - Static method in class edu.berkeley.nlp.lm.cache.ArrayEncodedCachingLmWrapper
 
wrapWithCacheThreadSafe(ContextEncodedNgramLanguageModel<T>) - Static method in class edu.berkeley.nlp.lm.cache.ContextEncodedCachingLmWrapper
This type of caching is threadsafe and (internally) maintains a separate cache for each thread that calls it.
wrapWithCacheThreadSafe(ContextEncodedNgramLanguageModel<T>, int) - Static method in class edu.berkeley.nlp.lm.cache.ContextEncodedCachingLmWrapper
 
writeLmBinary(NgramLanguageModel<W>, String) - Static method in class edu.berkeley.nlp.lm.io.LmReaders
Writes a binary file representing the LM using the built-in serialization.
writeObjFile(File, Object) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
writeObjFileEasy(File, Object) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
writeObjFileHard(File, Object) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 
writeObjFileHard(String, Object) - Static method in class edu.berkeley.nlp.lm.io.IOUtils
 

Z

zip(Iterator<S>, Iterator<T>) - Static method in class edu.berkeley.nlp.lm.collections.Iterators
 
A B C D E F G H I J K L M N O P R S T U V W Z 
All Classes All Packages