public class WNEDDataset extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
WNEDDataset.Reader |
| Modifier and Type | Field and Description |
|---|---|
protected List<Class<? extends Annotation>> |
annotations
Set of GOLD Annotations that should be appended to the Dataset.
|
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
WNEDDataset() |
| Modifier and Type | Method and Description |
|---|---|
Dataset |
readDataSet(Resource xmlFile,
Resource rawTextPath)
Reads a WNED Dataset with NamedEntityAnnotations.
|
Dataset |
readDataSet(Resource xmlFile,
Resource rawTextPath,
LuceneArticleIndex index) |
protected List<Document> |
readDocuments(Resource xmlFile,
Resource rawTextPath) |
protected static final org.slf4j.Logger log
protected List<Class<? extends Annotation>> annotations
public Dataset readDataSet(Resource xmlFile, Resource rawTextPath) throws IOException
xmlFile - - the XML containing the annotationsrawTextPath - - the folder containing raw text referenced in the XMLIOExceptionpublic Dataset readDataSet(Resource xmlFile, Resource rawTextPath, LuceneArticleIndex index) throws IOException
IOExceptionprotected List<Document> readDocuments(Resource xmlFile, Resource rawTextPath) throws IOException
IOExceptionCopyright © 2020. All rights reserved.