
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 - IOExceptionpublic void initFiles(String folder) throws IOException
IOExceptionpublic void initFiles(String[] initFiles) throws IOException
ANERReaderinitFiles in interface INERReaderinitFiles in class ANERReaderIOExceptionpublic String getInput()
IOExceptionprotected void readInputFromFiles()
                           throws IOException
IOExceptionprotected String parse()
Copyright © 2024. All rights reserved.