| Package | Description |
|---|---|
| com.aliasi.lm |
Classes for character- and token-based language models.
|
| com.aliasi.test.unit.lm |
| Modifier and Type | Class and Description |
|---|---|
class |
BitTrieReader
A
BitTrieReader provides a trie reader that wraps a
bit-level input. |
class |
MultiTrieReader
A
MultiTrieReader merges two trie readers, providing
output that is the result of adding the counts from the two readers. |
class |
PruneTrieReader
A
PruneTrieReader filters a contained trie
reader by removing all subtrees whose counts fall below
a specified minimum. |
class |
ScaleTrieReader
A
ScaleTrieReader filters a contained trie reader by
scaling all counts by a given multiple, removing all subtrees with
zero root counts. |
| Modifier and Type | Method and Description |
|---|---|
static void |
BitTrieWriter.copy(TrieReader reader,
TrieWriter writer)
Copies the content of the specified trie reader to the specified
trie writer.
|
static TrieCharSeqCounter |
TrieCharSeqCounter.readCounter(TrieReader reader,
int maxNGram)
Reads a trie character sequence counter from the specified
trie reader, restricting the result to the specified maximum
n-gram.
|
| Constructor and Description |
|---|
MultiTrieReader(TrieReader reader1,
TrieReader reader2)
Construct a multiple trie reader that returns counts that
are the sum of the two readers' counts.
|
PruneTrieReader(TrieReader reader,
long minCount)
Construct a scaling trie reader wrapping the specified
reader which deletes all subtrees with counts below the
specified minimum.
|
ScaleTrieReader(TrieReader reader,
double scale)
Construct a scaling trie reader wrapping the specified
reader and scaling counts with the specified value.
|
| Modifier and Type | Method and Description |
|---|---|
TrieReader |
MultiTrieReaderTest.toReader(TrieCharSeqCounter counter) |
Copyright © 2016 Alias-i, Inc.. All rights reserved.