| |
|
| java.lang.Object Language.SentenceDictionary
SentenceDictionary | public SentenceDictionary(String language)(Code) | | |
SentenceDictionary | public SentenceDictionary()(Code) | | |
ReadFromFile | public static SentenceDictionary ReadFromFile(String language, boolean useEmbeddedIfFileNotFound) throws Exception(Code) | | try to read the dictionary from file.
if not successful, try to use an internal embedded dictionary.
|
addTranslation | public void addTranslation(String english, String translation)(Code) | | add a translation
|
createFromVectorRepresentation | public void createFromVectorRepresentation(Vector v)(Code) | | |
getInternalAvailableTranslations | public static String[] getInternalAvailableTranslations()(Code) | | look in the schmortopf jar file if french and german are
available
|
getIsEditable | public boolean getIsEditable()(Code) | | |
getNumberOfSentences | public int getNumberOfSentences()(Code) | | |
getNumberOfTranslatedSentences | public int getNumberOfTranslatedSentences()(Code) | | |
getStringOfAllTranslatedSentences | public String getStringOfAllTranslatedSentences()(Code) | | |
getTranslatedSentence | public String getTranslatedSentence(String sentence)(Code) | | try to translate the sentence.
serch first for an exact mactch and then for a match
ignoring spaces at the beginning and at the end.
If not found, add a request and return the original english sentence
|
updateSentencesFromSource | public void updateSentencesFromSource(Vector allEnglishSentencesFoundInSource)(Code) | | this add the new sentences parsed in source and
remove the old ones (no more used)
|
|
|
|