public class ChildesParser extends Object
Constructor and Description |
---|
ChildesParser(String outFile,
String posOutFile,
boolean generateAugmented,
boolean separateByPeriod,
boolean appendPosTags,
boolean generateOneDoc)
Creates the
ChildesParser . |
Modifier and Type | Method and Description |
---|---|
static void |
findXmlFiles(ChildesParser parser,
boolean utterancePerDoc,
File directory)
Recursively finds any xml documents to parse.
|
void |
finish()
Finalizes the writing of documents.
|
static void |
main(String[] args) |
void |
parseFile(File file,
boolean utterancePerDoc)
Parses a single xml file.
|
public void parseFile(File file, boolean utterancePerDoc)
utterancePerDoc
is true, each
utterance will be on a separate line, otherwise they will all be
concantanated, and separated by periods, and stored on a single line.public void finish()
public static void main(String[] args)
public static void findXmlFiles(ChildesParser parser, boolean utterancePerDoc, File directory)
Copyright © 2012. All Rights Reserved.