public class Annotate extends Object
| Constructor and Description |
|---|
Annotate(Properties properties)
Construct an annotator with a
MorphoFactory. |
| Modifier and Type | Method and Description |
|---|---|
String |
annotatePOSToCoNLL(ixa.kaflib.KAFDocument kaf)
Annotate morphological information in tabulated CoNLL-style format.
|
void |
annotatePOSToKAF(ixa.kaflib.KAFDocument kaf)
Annotate morphological information into a NAF document.
|
public Annotate(Properties properties) throws IOException
MorphoFactory.properties - the properties fileIOException - io exception if model not properly loadedpublic final void annotatePOSToKAF(ixa.kaflib.KAFDocument kaf)
kaf - the NAF documentpublic final String annotatePOSToCoNLL(ixa.kaflib.KAFDocument kaf) throws IOException
kaf - the naf input documentIOException - throws io exceptionCopyright © 2016 IXA pipes. All rights reserved.