public class DictionaryLinker extends Object implements EntityExtractor
String -> IRI dictionary| Modifier and Type | Class and Description |
|---|---|
static class |
DictionaryLinker.Linker
|
static class |
DictionaryLinker.LinkerSerializer
Serializer for
DictionaryLinker.Linker objects:
[total_size][[key, values_size, values...], ...] |
| Constructor and Description |
|---|
DictionaryLinker(BasicMentionExtractor theExtractor,
List<DictionaryLinker.Linker> theDictionaries) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.Multimap<Span,Resource> |
extract(Reader theText)
Do entity extraction
|
static DictionaryLinker |
getDefault(Connection theConnection) |
static List<DictionaryLinker.Linker> |
loadFrom(File theDirectory)
Loads
DictionaryLinker.Linker objects from the given directory, caching them when necessary |
public DictionaryLinker(BasicMentionExtractor theExtractor, List<DictionaryLinker.Linker> theDictionaries)
public static DictionaryLinker getDefault(Connection theConnection) throws IOException
IOExceptionpublic com.google.common.collect.Multimap<Span,Resource> extract(Reader theText) throws Exception
EntityExtractorextract in interface EntityExtractortheText - the text to extract entitiesExceptionpublic static List<DictionaryLinker.Linker> loadFrom(File theDirectory) throws IOException
DictionaryLinker.Linker objects from the given directory, caching them when necessaryIOExceptionCopyright © 2010-2016 Stardog Union. All Rights Reserved.