Class EntityLinker
- java.lang.Object
-
- com.complexible.stardog.docs.nlp.impl.EntityLinker
-
- All Implemented Interfaces:
EntityExtractor<Spans>
public class EntityLinker extends java.lang.Object implements EntityExtractor<Spans>
Entity linker
-
-
Constructor Summary
Constructors Constructor Description EntityLinker(DocumentParser theParser, MentionExtractor theMentionExtractor, java.util.function.Function<Span,Span> theMentionProcessor, CandidateGenerator theCandidateGenerator, FeatureGenerator theFeatureGenerator, RankingFunction theRankingFunction, CandidateSelector theCandidateSelector)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Spans
extract(java.io.Reader theText)
Do entity extractionstatic EntityLinker
getDefault(Connection theConnection)
-
-
-
Constructor Detail
-
EntityLinker
public EntityLinker(DocumentParser theParser, MentionExtractor theMentionExtractor, java.util.function.Function<Span,Span> theMentionProcessor, CandidateGenerator theCandidateGenerator, FeatureGenerator theFeatureGenerator, RankingFunction theRankingFunction, CandidateSelector theCandidateSelector)
-
-
Method Detail
-
getDefault
public static EntityLinker getDefault(Connection theConnection) throws java.io.IOException
- Throws:
java.io.IOException
-
extract
public Spans extract(java.io.Reader theText) throws java.lang.Exception
Description copied from interface:EntityExtractor
Do entity extraction- Specified by:
extract
in interfaceEntityExtractor<Spans>
- Parameters:
theText
- the text to extract entities- Returns:
- The extracted entities
- Throws:
java.lang.Exception
-
-