Class BasicMentionExtractorFactory

    • Constructor Detail

      • BasicMentionExtractorFactory

        public BasicMentionExtractorFactory()
    • Method Detail

      • 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 interface EntityExtractorFactory<Spans>
        Parameters:
        conn - connection to the database that the query is using
        theBody - 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.