public class NifReader extends ANERReader
Modifier and Type | Field and Description |
---|---|
protected String |
dbpedia_instance_types_en |
protected HashMap<String,String> |
entities |
protected String |
input |
CFG_KEY_MAX_SENTENCES, inputFiles, LOG, maxSentences
Modifier and Type | Method and Description |
---|---|
protected Map<String,Set<String>> |
dbpadiaUriToTypes(String file)
Triples separated with a space in the input file.
|
protected List<Set<String>> |
deserialize()
Deserialize data.
|
protected Set<String> |
deserialize(String file)
Deserializes sets of strings with uris of resources with the same type.
|
Map<String,String> |
getEntities() |
String |
getInput() |
static void |
main(String[] aa) |
protected void |
readData() |
initFiles
protected String input
protected String dbpedia_instance_types_en
public NifReader(String[] files) throws IOException
IOException
public NifReader()
public String getInput()
protected List<Set<String>> deserialize()
protected void readData()
protected Set<String> deserialize(String file) throws IOException, ClassNotFoundException
file
- path to fileIOException
ClassNotFoundException
Copyright © 2024. All rights reserved.