public class Utils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Utils.Callback
Read word embeddings from file.
|
Modifier and Type | Field and Description |
---|---|
static String |
embeddingPath |
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static org.apache.uima.collection.CollectionReader |
getCollectionReader(File inputDirectory)
Instantiate an XMI collection reader.
|
static String |
getLastWord(org.apache.uima.jcas.JCas systemView,
org.apache.uima.jcas.tcas.Annotation annotation)
Given an annotation, retrieve its last word.
|
static void |
main(String[] args) |
public static final String embeddingPath
public static org.apache.uima.collection.CollectionReader getCollectionReader(File inputDirectory) throws Exception
Exception
public static String getLastWord(org.apache.uima.jcas.JCas systemView, org.apache.uima.jcas.tcas.Annotation annotation)
public static void main(String[] args) throws IOException
IOException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.