edu.umn.cs.nlp.mt
Class TranslationRuleDatabase
java.lang.Object
edu.umn.cs.nlp.mt.TranslationRuleDatabase
- All Implemented Interfaces:
- TranslationRules
public class TranslationRuleDatabase
- extends Object
- implements TranslationRules
- Version:
- $LastChangedDate: 2007-11-14 09:28:40 -0600 (Wed, 14 Nov 2007) $
- Author:
- Lane Schwartz
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TranslationRuleDatabase
public TranslationRuleDatabase(String databaseFile,
String environmentDirectory,
String encoding,
boolean allowDuplicates,
TupleBinding binding,
int kbestListSize)
isOpen
public boolean isOpen()
- Specified by:
isOpen
in interface TranslationRules
getNBest
public NBestList<TranslationRule> getNBest(String key)
- Specified by:
getNBest
in interface TranslationRules
getAll
public Collection<TranslationRule> getAll(String key)
- Specified by:
getAll
in interface TranslationRules
getGlueRule
public Collection<TranslationRule> getGlueRule(String key)
- Specified by:
getGlueRule
in interface TranslationRules
getUnknownWordRule
public Collection<TranslationRule> getUnknownWordRule()
- Specified by:
getUnknownWordRule
in interface TranslationRules
close
public void close()
- Specified by:
close
in interface TranslationRules
incompleteMatchExists
public boolean incompleteMatchExists(String key)
- Specified by:
incompleteMatchExists
in interface TranslationRules
main
public static void main(String[] args)