Package com.complexible.stardog.docs.nlp
Interface EntityExtractorFactory<T extends Spans>
-
- All Known Implementing Classes:
BasicMentionExtractorFactory,DictionaryLinkerExtractorFactory,EntityLinkerExtractorFactory
public interface EntityExtractorFactory<T extends Spans>Creates instances ofEntityExtractorfor the given connection.- Since:
- 7.7.3
- Author:
- Pavel Klinov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default EntityExtractor<T>create(Connection conn)EntityExtractor<T>create(Connection conn, com.complexible.stardog.plan.PlanNode body)Instantiate the entity extractor with this factory.IRIgetExtractorIRI()java.lang.Stringname()
-
-
-
Method Detail
-
getExtractorIRI
IRI getExtractorIRI()
-
name
java.lang.String name()
-
create
EntityExtractor<T> create(Connection conn, com.complexible.stardog.plan.PlanNode body) throws java.io.IOException
Instantiate the entity extractor with this factory.- Parameters:
conn- connection to the database that the query is usingbody- the query pattern inside the SPARQL service. It may contain configuration parameters for the extractor.- Returns:
- the instantiated extractor
- Throws:
java.io.IOException- if instantiation fails, e.g. when an NLP model cannot be loaded.
-
create
default EntityExtractor<T> create(Connection conn) throws java.io.IOException
- Throws:
java.io.IOException
-
-