Difference between revisions of "More details on Phrasal discriminative features"

From NLPWiki
Jump to: navigation, search
(Discriminative Phrase Table)
m
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
Various discriminative features could be specified under the [additional-featurizers] section in Phrasal *.ini files.
+
Various discriminative features can be specified under the [additional-featurizers] section in Phrasal *.ini files.
  
 
=== Discriminative Phrase Table ===
 
=== Discriminative Phrase Table ===
Line 5: Line 5:
 
   "arg1" --  true/false, whether to use lexicalized features or not (default=true)
 
   "arg1" --  true/false, whether to use lexicalized features or not (default=true)
 
   "arg2" --  true/false, whether to use class-based features or not (default=false)
 
   "arg2" --  true/false, whether to use class-based features or not (default=false)
   "arg3" --  int, whether to threshold feature count (default=-1, no thresholding)
+
   "arg3" --  int, whether to threshold feature counts (default=-1, no thresholding)
 +
 
 +
=== Discriminative Alignments ===
 +
edu.stanford.nlp.mt.decoder.feat.sparse.DiscriminativeAlignments(arg1,arg2,arg3)
 +
  "arg1" --  true/false, whether to add source deletions or not (default=false)
 +
  "arg2" --  true/false, whether to add target insertions or not (default=false)
 +
  "arg3" --  true/false, whether to use class-based features or not (default=false)
 +
 
 +
=== Lexical Reordering ===
 +
edu.stanford.nlp.mt.decoder.feat.base.LexicalReorderingFeaturizer(args), each argument can take one of the following values:
 +
  "conditionOnConstellations"
 +
  "classes"
 +
  "useClasses" --  use word classes
 +
  "countFeatureIndexN" -- N is an int, whether to threshold feature counts (N<0, no thresholding).

Latest revision as of 15:14, 16 January 2014

Various discriminative features can be specified under the [additional-featurizers] section in Phrasal *.ini files.

Discriminative Phrase Table

edu.stanford.nlp.mt.decoder.feat.sparse.DiscriminativePhraseTable(arg1,arg2,arg3)

 "arg1" --  true/false, whether to use lexicalized features or not (default=true)
 "arg2" --  true/false, whether to use class-based features or not (default=false)
 "arg3" --  int, whether to threshold feature counts (default=-1, no thresholding)

Discriminative Alignments

edu.stanford.nlp.mt.decoder.feat.sparse.DiscriminativeAlignments(arg1,arg2,arg3)

 "arg1" --  true/false, whether to add source deletions or not (default=false)
 "arg2" --  true/false, whether to add target insertions or not (default=false)
 "arg3" --  true/false, whether to use class-based features or not (default=false)

Lexical Reordering

edu.stanford.nlp.mt.decoder.feat.base.LexicalReorderingFeaturizer(args), each argument can take one of the following values:

 "conditionOnConstellations"
 "classes"
 "useClasses" --  use word classes
 "countFeatureIndexN" -- N is an int, whether to threshold feature counts (N<0, no thresholding).