Joshua
open source statistical hierarchical phrase-based machine translation system
|
Classes | |
class | PackedTrie |
Public Member Functions | |
PackedSlice (String prefix) throws IOException | |
String | toString () |
Private Member Functions | |
final int[] | getTarget (int pointer) |
synchronized PackedTrie | getTrie (final int node_address) |
synchronized PackedTrie | getTrie (int node_address, int[] parent_src, int parent_arity, int symbol) |
final String | getFeatures (int block_id) |
final byte[] | getAlignmentArray (int block_id) |
final PackedTrie | root () |
Private Attributes | |
final String | name |
final int[] | source |
final int[] | target |
final int[] | targetLookup |
MappedByteBuffer | features |
int | featureSize |
int[] | featureLookup |
RandomAccessFile | featureFile |
float[] | estimated |
float[] | precomputable |
RandomAccessFile | alignmentFile |
MappedByteBuffer | alignments |
int[] | alignmentLookup |
HashMap< Integer, PackedTrie > | tries |
final Object | guardian |
joshua.decoder.ff.tm.packed.PackedGrammar.PackedSlice.PackedSlice | ( | String | prefix | ) | throws IOException |
final byte [] joshua.decoder.ff.tm.packed.PackedGrammar.PackedSlice.getAlignmentArray | ( | int | block_id | ) | [private] |
final String joshua.decoder.ff.tm.packed.PackedGrammar.PackedSlice.getFeatures | ( | int | block_id | ) | [private] |
NEW VERSION
Returns a string version of the features associated with a rule (represented as a block ID). These features are in the form "feature1=value feature2=value...". By default, unlabeled features are named using the pattern
tm_OWNER_INDEX
where OWNER is the grammar's owner (Vocabulary.word(this.owner)) and INDEX is a 0-based index of the feature found in the grammar.
block_id |
final int [] joshua.decoder.ff.tm.packed.PackedGrammar.PackedSlice.getTarget | ( | int | pointer | ) | [private] |
synchronized PackedTrie joshua.decoder.ff.tm.packed.PackedGrammar.PackedSlice.getTrie | ( | final int | node_address | ) | [private] |
synchronized PackedTrie joshua.decoder.ff.tm.packed.PackedGrammar.PackedSlice.getTrie | ( | int | node_address, |
int[] | parent_src, | ||
int | parent_arity, | ||
int | symbol | ||
) | [private] |
final PackedTrie joshua.decoder.ff.tm.packed.PackedGrammar.PackedSlice.root | ( | ) | [private] |
RandomAccessFile joshua.decoder.ff.tm.packed.PackedGrammar.PackedSlice.alignmentFile [private] |
MappedByteBuffer joshua.decoder.ff.tm.packed.PackedGrammar.PackedSlice.alignments [private] |
float [] joshua.decoder.ff.tm.packed.PackedGrammar.PackedSlice.estimated [private] |
RandomAccessFile joshua.decoder.ff.tm.packed.PackedGrammar.PackedSlice.featureFile [private] |
int [] joshua.decoder.ff.tm.packed.PackedGrammar.PackedSlice.featureLookup [private] |
MappedByteBuffer joshua.decoder.ff.tm.packed.PackedGrammar.PackedSlice.features [private] |
final Object joshua.decoder.ff.tm.packed.PackedGrammar.PackedSlice.guardian [private] |
new Object() { @Override protected void finalize() throws Throwable { featureFile.close(); } }
final String joshua.decoder.ff.tm.packed.PackedGrammar.PackedSlice.name [private] |
float [] joshua.decoder.ff.tm.packed.PackedGrammar.PackedSlice.precomputable [private] |
final int [] joshua.decoder.ff.tm.packed.PackedGrammar.PackedSlice.source [private] |
final int [] joshua.decoder.ff.tm.packed.PackedGrammar.PackedSlice.target [private] |
final int [] joshua.decoder.ff.tm.packed.PackedGrammar.PackedSlice.targetLookup [private] |
HashMap<Integer, PackedTrie> joshua.decoder.ff.tm.packed.PackedGrammar.PackedSlice.tries [private] |