|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hops.lg.pg.PhrasesGenerator
public class PhrasesGenerator
This class gets an xml file containing a Language Descriptor FOR ONE LANGUAGE and generates the phrases file feed by the HopsLang
Constructor Summary | |
---|---|
PhrasesGenerator()
Creates a new instance of PhrasesGenerator |
Method Summary | |
---|---|
void |
generatePhrases()
Generates all the phrases for all the LanguageDescriptors in the system |
void |
PrintHopsPhrases(java.io.OutputStream oout)
all_phrases is a HashMap of rules. |
void |
PrintLexicon(java.io.OutputStream oout)
|
void |
PrintPhrases(java.io.OutputStream oout)
|
boolean |
ProcessFiles(java.lang.String[] files)
Process the specified files. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PhrasesGenerator()
Method Detail |
---|
public boolean ProcessFiles(java.lang.String[] files)
SetFiles
ProcessFiles()
files
- contain the name of the files. They will be stored internally (and previous ones will be removed)
public void generatePhrases()
public void PrintPhrases(java.io.OutputStream oout) throws java.io.IOException
java.io.IOException
public void PrintHopsPhrases(java.io.OutputStream oout) throws java.io.IOException
java.io.IOException
public void PrintLexicon(java.io.OutputStream oout) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |