public class IITBDataset extends AbstractDataset implements InitializableDataset
| Modifier and Type | Field and Description |
|---|---|
protected String |
annotationsDirectory |
protected List<org.aksw.gerbil.transfer.nif.Document> |
documents |
protected String |
textsDirectory |
protected int |
unknownEntitiesCount |
granter, name| Constructor and Description |
|---|
IITBDataset(String textsDirectory,
String annotationsDirectory) |
| Modifier and Type | Method and Description |
|---|---|
protected org.aksw.gerbil.transfer.nif.Document |
createDocument(String fileName,
String text,
Set<IITB_Annotation> annotations) |
protected String |
generateDocumentUri(String fileName) |
List<org.aksw.gerbil.transfer.nif.Document> |
getInstances() |
void |
init() |
protected Map<String,Set<IITB_Annotation>> |
loadAnnotations(File annotationsFile) |
protected List<org.aksw.gerbil.transfer.nif.Document> |
loadDocuments(File textDir,
File annoFile) |
int |
size() |
close, getName, performClose, setClosePermitionGranter, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, setClosePermitionGranter, setNameprotected List<org.aksw.gerbil.transfer.nif.Document> documents
protected String textsDirectory
protected String annotationsDirectory
protected int unknownEntitiesCount
public IITBDataset(String textsDirectory, String annotationsDirectory) throws GerbilException
GerbilExceptionpublic List<org.aksw.gerbil.transfer.nif.Document> getInstances()
getInstances in interface Datasetpublic void init()
throws GerbilException
init in interface InitializableDatasetGerbilExceptionprotected List<org.aksw.gerbil.transfer.nif.Document> loadDocuments(File textDir, File annoFile) throws GerbilException
GerbilExceptionprotected Map<String,Set<IITB_Annotation>> loadAnnotations(File annotationsFile) throws GerbilException
GerbilExceptionprotected org.aksw.gerbil.transfer.nif.Document createDocument(String fileName, String text, Set<IITB_Annotation> annotations)
Copyright © 2014–2017. All rights reserved.