Class BasicMentionExtractorFactory
- java.lang.Object
-
- com.complexible.stardog.docs.nlp.impl.BasicMentionExtractorFactory
-
- All Implemented Interfaces:
EntityExtractorFactory<Spans>
public class BasicMentionExtractorFactory extends java.lang.Object implements EntityExtractorFactory<Spans>
- Since:
- 7.7.3
- Author:
- Pavel Klinov
-
-
Constructor Summary
Constructors Constructor Description BasicMentionExtractorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityExtractor<Spans>
create(Connection conn, com.complexible.stardog.plan.PlanNode theBody)
Instantiate the entity extractor with this factory.IRI
getExtractorIRI()
java.lang.String
name()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.complexible.stardog.docs.nlp.EntityExtractorFactory
create
-
-
-
-
Method Detail
-
getExtractorIRI
public IRI getExtractorIRI()
- Specified by:
getExtractorIRI
in interfaceEntityExtractorFactory<Spans>
-
create
public EntityExtractor<Spans> create(Connection conn, com.complexible.stardog.plan.PlanNode theBody) throws java.io.IOException
Description copied from interface:EntityExtractorFactory
Instantiate the entity extractor with this factory.- Specified by:
create
in interfaceEntityExtractorFactory<Spans>
- Parameters:
conn
- connection to the database that the query is usingtheBody
- 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.
-
name
public java.lang.String name()
- Specified by:
name
in interfaceEntityExtractorFactory<Spans>
-
-