|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.dfki.lt.mary.dbselection.FeatureMakerMaryServer
public class FeatureMakerMaryServer
Takes text and converts to features Needs a running Mary server
| Field Summary | |
|---|---|
protected static java.lang.String |
basenamesOutFile
|
protected static java.lang.String |
doneFileName
|
protected static java.io.PrintWriter |
doneOut
|
protected static FeatureDefinition |
featDef
|
protected static java.lang.String |
featOutDirName
|
protected static java.util.Map |
index2sentences
|
protected static MaryClient |
mary
|
protected static java.lang.String |
maryHost
|
protected static java.lang.String |
maryPort
|
protected static int |
outDirIndex
|
protected static java.lang.StringBuffer |
sentence
|
protected static java.lang.String |
sentOutDirName
|
protected static boolean |
strictCredibility
|
protected static java.lang.String |
textFiles
|
protected static int |
timeOutAfter
|
protected static java.io.PrintWriter |
unreliableLog
|
protected static java.lang.String |
unreliableLogFile
|
protected static boolean |
usefulSentence
|
| Constructor Summary | |
|---|---|
FeatureMakerMaryServer()
|
|
| Method Summary | |
|---|---|
protected static boolean |
checkCredibility(org.w3c.dom.Element t)
Phonemise the given document with the help of JPhonemiser |
protected static void |
collectTokens(org.w3c.dom.Node nextToken)
Collect the tokens of a sentence |
protected static void |
dumpSentence(java.lang.String filename,
java.lang.String sentence)
Print the given sentence to the given file |
protected static void |
getFeatures(java.lang.String filename,
MaryData d)
Process the target features and print them to the given file |
protected static void |
getXMLAsString(org.w3c.dom.Node motherNode,
java.lang.StringBuffer ppText)
Convert the given xml-node and its subnodes to Strings and collect them in the given Stringbuffer |
static void |
main(java.lang.String[] args)
|
protected static org.w3c.dom.Document |
phonemiseText(java.lang.String textString)
Process the given text with the MaryClient from Text to Chunked |
protected static void |
printUsage()
Print usage of this program |
protected static MaryData |
processSentence(java.lang.String nextSentence,
java.lang.String filename)
Process one sentences from text to target features |
protected static boolean |
readArgs(java.lang.String[] args)
Read and parse the command line args |
protected static java.util.List |
readInDoneFiles(java.lang.String doneFilesTextName)
Read the list of already processed files |
protected static boolean |
splitIntoSentences(java.lang.String text,
java.lang.String filename)
Split the content of the file into separate sentences |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static MaryClient mary
protected static java.lang.StringBuffer sentence
protected static boolean usefulSentence
protected static java.util.Map index2sentences
protected static FeatureDefinition featDef
protected static java.io.PrintWriter doneOut
protected static java.io.PrintWriter unreliableLog
protected static java.lang.String textFiles
protected static java.lang.String featOutDirName
protected static java.lang.String sentOutDirName
protected static java.lang.String doneFileName
protected static java.lang.String maryHost
protected static java.lang.String maryPort
protected static int timeOutAfter
protected static java.lang.String unreliableLogFile
protected static boolean strictCredibility
protected static java.lang.String basenamesOutFile
protected static int outDirIndex
| Constructor Detail |
|---|
public FeatureMakerMaryServer()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exceptionprotected static void printUsage()
protected static boolean readArgs(java.lang.String[] args)
args - the args
protected static MaryData processSentence(java.lang.String nextSentence,
java.lang.String filename)
nextSentence - the sentencefilename - the file containing the sentence
protected static boolean checkCredibility(org.w3c.dom.Element t)
d -
protected static void getFeatures(java.lang.String filename,
MaryData d)
throws java.lang.Exception
filename - the file to print the features tod - the target features as Mary Data object
java.lang.Exception
protected static void dumpSentence(java.lang.String filename,
java.lang.String sentence)
throws java.lang.Exception
filename - the filesentence - the sentence
java.lang.Exception
protected static java.util.List readInDoneFiles(java.lang.String doneFilesTextName)
throws java.lang.Exception
doneDirsTextName - the file to read from
java.lang.Exception
protected static boolean splitIntoSentences(java.lang.String text,
java.lang.String filename)
throws java.lang.Exception
file - the file
java.lang.Exception
protected static org.w3c.dom.Document phonemiseText(java.lang.String textString)
throws java.lang.Exception
textString - the text to process
java.lang.Exceptionprotected static void collectTokens(org.w3c.dom.Node nextToken)
nextToken - the Node to start from
protected static void getXMLAsString(org.w3c.dom.Node motherNode,
java.lang.StringBuffer ppText)
motherNode - the xml-nodeppText - the Stringbuffer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||