Joshua
open source statistical hierarchical phrase-based machine translation system
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
joshua.decoder.ff.tm.packed.PackedGrammar.PackedSlice Class Reference
Collaboration diagram for joshua.decoder.ff.tm.packed.PackedGrammar.PackedSlice:
[legend]

List of all members.

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, PackedTrietries
final Object guardian

Constructor & Destructor Documentation


Member Function Documentation

Here is the caller graph for this function:

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.

Parameters:
block_id
Returns:

Here is the call graph for this function:

Here is the caller graph for this function:

final int [] joshua.decoder.ff.tm.packed.PackedGrammar.PackedSlice.getTarget ( int  pointer) [private]

Here is the caller graph for this function:

synchronized PackedTrie joshua.decoder.ff.tm.packed.PackedGrammar.PackedSlice.getTrie ( final int  node_address) [private]

Here is the caller graph for this function:

synchronized PackedTrie joshua.decoder.ff.tm.packed.PackedGrammar.PackedSlice.getTrie ( int  node_address,
int[]  parent_src,
int  parent_arity,
int  symbol 
) [private]

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Initial value:
 new Object() {
      @Override
      
      protected void finalize() throws Throwable {
        featureFile.close();
      }
    }