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

List of all members.

Public Member Functions

 PhraseChart (PhraseTable[] tables, List< FeatureFunction > features, Sentence source, int num_options)
int SentenceLength ()
int MaxSourcePhraseLength ()
TargetPhrases getRange (int begin, int end)

Package Attributes

int numOptions = 20

Private Member Functions

int offset (int i, int j)
void addToRange (int begin, int end, RuleCollection to)

Private Attributes

int sentence_length
int max_source_phrase_length
List< TargetPhrasesentries
List< FeatureFunctionfeatures

Detailed Description

This class represents a bundle of phrase tables that have been read in, reporting some stats about them. Probably could be done away with.


Constructor & Destructor Documentation

joshua.decoder.phrase.PhraseChart.PhraseChart ( PhraseTable[]  tables,
List< FeatureFunction features,
Sentence  source,
int  num_options 
)

Create a new PhraseChart object, which represents all phrases that are applicable against the current input sentence. These phrases are extracted from all available grammars.

Parameters:
tables
source

Here is the call graph for this function:


Member Function Documentation

void joshua.decoder.phrase.PhraseChart.addToRange ( int  begin,
int  end,
RuleCollection  to 
) [private]

Add a set of phrases from a grammar to the current span.

Parameters:
begin
end
to

Here is the call graph for this function:

Here is the caller graph for this function:

Returns phrases from all grammars that match the span.

Parameters:
begin
end
Returns:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

int joshua.decoder.phrase.PhraseChart.offset ( int  i,
int  j 
) [private]

Maps two-dimensional span into a one-dimensional array.

Parameters:
i
j
Returns:
offset into private list of TargetPhrases

Here is the caller graph for this function:

Here is the caller graph for this function:


Member Data Documentation