public class Onoma extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
loaded |
| Constructor and Description |
|---|
Onoma() |
| Modifier and Type | Method and Description |
|---|---|
static void |
read(String fileName)
Read the onomasticon from file 'fileName'.
|
static void |
tagDrugs(Document doc,
Span span)
This is a stub which remains from code that was added at SRI's
request for Dovetail in order to tag drug names..
|
static void |
tagNames(Document doc,
Span span)
tag names which appear in the onomasticon, adding an ENAMEX annotation
with features TYPE and SUBTYPE.
|
public static void read(String fileName) throws IOException
IOExceptionpublic static void tagDrugs(Document doc, Span span)
public static void tagNames(Document doc, Span span)
If there is an existing ENAMEX annotation which overlaps but is not contained in the name in the onomasticon, the existing annotation takes precedence and no new annotation is added. If there are existing ENAMEX annotations which are contained within the name given in the onomasticon, these existing annotations are deleted.
Copyright © 2016 New York University. All rights reserved.