
public class WikinerReader extends ANERReader
| Modifier and Type | Field and Description |
|---|---|
protected HashMap<String,List<AbstractMap.SimpleEntry<String,Integer>>> |
disambEntities |
protected HashMap<String,String> |
entities |
protected StringBuilder |
input |
CFG_KEY_MAX_SENTENCES, inputFiles, LOG, maxSentences| Constructor and Description |
|---|
WikinerReader()
Constructor for loading class.
|
WikinerReader(String[] inputPaths) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getEntities() |
String |
getInput() |
void |
initFiles(String[] initFiles)
String to File.
|
static void |
main(String[] a) |
protected void |
readData()
Tags are:
[I-MISC, B-LOC, I-PER, B-PER, I-LOC, B-MISC, I-ORG, B-ORG, O]
|
protected StringBuilder input
public WikinerReader()
public WikinerReader(String[] inputPaths) throws IOException
IOExceptionpublic static void main(String[] a) throws IOException
IOExceptionpublic void initFiles(String[] initFiles) throws IOException
ANERReaderinitFiles in interface INERReaderinitFiles in class ANERReaderIOExceptionprotected void readData()
throws IOException
IOExceptionpublic String getInput()
Copyright © 2024. All rights reserved.