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

List of all members.

Classes

class  ParaphraseRule
class  PreParaphraseRule
class  RuleBatch

Static Public Member Functions

static void main (String[] args) throws NumberFormatException, IOException

Static Protected Member Functions

static String adaptNonterminalMarkup (String nt, int index)
static String adaptNonterminalMarkup (String nt)
static String stripNonterminalMarkup (String nt)

Static Private Attributes

static final Logger logger = Logger.getLogger(BuildParaphraseGrammar.class.getName())
static boolean HIERO_MODE = false
static double MIN_COUNT = -Math.log(3.0)
static double MIN_PROB = -Math.log(0.0001)
static int TOP_K = 25
static long PRUNED_COUNT = 0
static long PRUNED_PROB = 0
static long PRUNED_TOP_K = 0
static long GENERATED = 0

Detailed Description

Merges a sorted SAMT-format to-English translation grammar into a paraphrase grammar

Author:
Juri Ganitkevitch

Member Function Documentation

static String joshua.tools.BuildParaphraseGrammar.adaptNonterminalMarkup ( String  nt,
int  index 
) [static, protected]

Here is the caller graph for this function:

static String joshua.tools.BuildParaphraseGrammar.adaptNonterminalMarkup ( String  nt) [static, protected]
static void joshua.tools.BuildParaphraseGrammar.main ( String[]  args) throws NumberFormatException, IOException [static]

Main method.

Parameters:
argsnames of the two grammars to be compared
Exceptions:
IOException
NumberFormatException

Here is the call graph for this function:

static String joshua.tools.BuildParaphraseGrammar.stripNonterminalMarkup ( String  nt) [static, protected]

Member Data Documentation

boolean joshua.tools.BuildParaphraseGrammar.HIERO_MODE = false [static, private]
final Logger joshua.tools.BuildParaphraseGrammar.logger = Logger.getLogger(BuildParaphraseGrammar.class.getName()) [static, private]

Logger for this class.

double joshua.tools.BuildParaphraseGrammar.MIN_COUNT = -Math.log(3.0) [static, private]
double joshua.tools.BuildParaphraseGrammar.MIN_PROB = -Math.log(0.0001) [static, private]
int joshua.tools.BuildParaphraseGrammar.TOP_K = 25 [static, private]