public class DictionaryLinker extends Object implements EntityExtractor
String -> IRI dictionary| Modifier and Type | Class and Description |
|---|---|
static class |
DictionaryLinker.Linker
Maps a
Span to one or more IRI |
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 |
|---|---|
static void |
clearLinkerCache()
Clears internal
DictionaryLinker.Linker cache |
com.google.common.collect.Multimap<Span,org.openrdf.model.Resource> |
extract(Reader theText)
Do entity extraction
|
static DictionaryLinker |
getDefault(Connection theConnection) |
public DictionaryLinker(BasicMentionExtractor theExtractor, List<DictionaryLinker.Linker> theDictionaries)
public static DictionaryLinker getDefault(Connection theConnection) throws IOException
IOExceptionpublic com.google.common.collect.Multimap<Span,org.openrdf.model.Resource> extract(Reader theText) throws Exception
EntityExtractorextract in interface EntityExtractortheText - the text to extract entitiesExceptionpublic static void clearLinkerCache()
DictionaryLinker.Linker cacheCopyright © 2010-2016 Stardog Union. All Rights Reserved.