Joshua
open source statistical hierarchical phrase-based machine translation system
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
joshua.decoder.ff.lm.ArpaNgram Class Reference

List of all members.

Public Member Functions

 ArpaNgram (int word, int[] context, float value, float backoff)
int order ()
int getWord ()
int[] getContext ()
float getValue ()
float getBackoff ()

Static Public Attributes

static final float INVALID_VALUE = Float.NaN
static final float DEFAULT_BACKOFF = 0.0f

Private Attributes

final int word
final int[] context
final float value
final float backoff

Detailed Description

Represents a single n-gram line from an ARPA language model file.

Author:
Lane Schwartz

Constructor & Destructor Documentation

joshua.decoder.ff.lm.ArpaNgram.ArpaNgram ( int  word,
int[]  context,
float  value,
float  backoff 
)

Member Function Documentation


Member Data Documentation

Default backoff value.

final float joshua.decoder.ff.lm.ArpaNgram.INVALID_VALUE = Float.NaN [static]

Indicates an invalid probability value.

final float joshua.decoder.ff.lm.ArpaNgram.value [private]