public class TrainingInputReader extends ANERReader
Modifier and Type | Field and Description |
---|---|
protected HashMap<String,String> |
entities |
protected String |
input |
protected StringBuffer |
taggedInput |
CFG_KEY_MAX_SENTENCES, inputFiles, LOG, maxSentences
Constructor and Description |
---|
TrainingInputReader()
Empty constructor to create class with Reflections.
|
TrainingInputReader(String[] inputPaths)
http://www-nlpir.nist.gov/related_projects/muc/proceedings/ne_task.html
|
Modifier and Type | Method and Description |
---|---|
HashMap<String,String> |
getEntities() |
String |
getInput() |
void |
initFiles(String folder) |
void |
initFiles(String[] initFiles)
String to File.
|
static void |
main(String[] aa) |
protected String |
parse()
Reads entities in taggedInput.
|
protected void |
put(String word,
String classs) |
protected void |
readInputFromFiles()
Reads PREAMBLE or TEXT tag content to taggedInput.
|
protected StringBuffer taggedInput
protected String input
public TrainingInputReader()
public TrainingInputReader(String[] inputPaths) throws IOException
inputPaths
- IOException
public void initFiles(String folder) throws IOException
IOException
public void initFiles(String[] initFiles) throws IOException
ANERReader
initFiles
in interface INERReader
initFiles
in class ANERReader
IOException
public String getInput()
IOException
protected void readInputFromFiles() throws IOException
IOException
protected String parse()
Copyright © 2024. All rights reserved.