public class XMLToAnnotation
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
XMLToAnnotation.Data |
static class |
XMLToAnnotation.GoldQuoteInfo |
protected static class |
XMLToAnnotation.Mention |
Constructor and Description |
---|
XMLToAnnotation() |
Modifier and Type | Method and Description |
---|---|
static Annotation |
getAnnotatedFile(java.lang.String text,
java.lang.String baseFileName,
java.util.Properties props) |
static int |
getEndIndex(int startIndex,
java.util.List<CoreLabel> tokens,
java.lang.String text) |
static java.lang.String |
getJustText(org.w3c.dom.Node text) |
static java.util.Properties |
getProcessedCoreNLPProperties() |
static void |
processCoreNLPIfDoesNotExist(java.io.File processedFile,
java.util.Properties coreNLPProps,
java.lang.String text) |
static java.util.List<java.lang.Integer> |
readConnection(java.lang.String connection) |
static java.util.List<Person> |
readXMLCharacterList(org.w3c.dom.Document doc) |
static XMLToAnnotation.Data |
readXMLFormat(java.lang.String fileName) |
static void |
writeCharacterList(java.lang.String fileName,
java.util.List<Person> personList) |
public static java.lang.String getJustText(org.w3c.dom.Node text)
public static java.util.Properties getProcessedCoreNLPProperties()
public static void processCoreNLPIfDoesNotExist(java.io.File processedFile, java.util.Properties coreNLPProps, java.lang.String text)
public static Annotation getAnnotatedFile(java.lang.String text, java.lang.String baseFileName, java.util.Properties props) throws java.io.IOException
java.io.IOException
public static java.util.List<java.lang.Integer> readConnection(java.lang.String connection)
public static int getEndIndex(int startIndex, java.util.List<CoreLabel> tokens, java.lang.String text)
public static java.util.List<Person> readXMLCharacterList(org.w3c.dom.Document doc)
public static void writeCharacterList(java.lang.String fileName, java.util.List<Person> personList) throws java.io.IOException
java.io.IOException
public static XMLToAnnotation.Data readXMLFormat(java.lang.String fileName) throws java.lang.Exception
java.lang.Exception