edu.umn.cs.nlp.mt.chiang2007
Class Parser
java.lang.Object
edu.umn.cs.nlp.mt.chiang2007.Parser
public class Parser
- extends Object
- Version:
- $LastChangedDate: 2007-11-26 10:42:44 -0600 (Mon, 26 Nov 2007) $
- Author:
- Lane Schwartz
- See Also:
- "Hierarchical phrase-based translation" by David Chiang (Computational Linguistics, 2007),
"A Hierarchical Phrase-Based Model for Statistical Machine Translation" by David Chiang (ACL, 2005),
"Better k-best Parsing" by Liang Huang & David Chiang (IWPT, 2005)
Field Summary |
static String |
DB_NAME
Internal name for the grammar database; needed by the backing Berkeley DB JE database |
static int |
NGRAM_ORDER
|
Constructor Summary |
Parser(int rule_b,
String databaseDirectory,
String dbEncoding,
int nbestSize,
Locale locale,
NGramDB languageModel)
|
Parser(int rule_b,
String databaseDirectory,
String dbEncoding,
int nbestSize,
NGramDB languageModel)
|
Parser(TranslationRules rules,
int nbestSize,
Locale locale,
LanguageModel languageModel)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NGRAM_ORDER
public static final int NGRAM_ORDER
- See Also:
- Constant Field Values
DB_NAME
public static final String DB_NAME
- Internal name for the grammar database; needed by the backing Berkeley DB JE database
- See Also:
- Constant Field Values
Parser
public Parser(int rule_b,
String databaseDirectory,
String dbEncoding,
int nbestSize,
NGramDB languageModel)
Parser
public Parser(int rule_b,
String databaseDirectory,
String dbEncoding,
int nbestSize,
Locale locale,
NGramDB languageModel)
Parser
public Parser(TranslationRules rules,
int nbestSize,
Locale locale,
LanguageModel languageModel)
getNBestSize
public int getNBestSize()
parse
public List<Translation> parse(String sentence)
parse
public List<Translation> parse(String... token)
isOpen
public boolean isOpen()
close
public void close()
main
public static void main(String[] args)