Class FlairCompositeMentionTagger
- java.lang.Object
-
- de.julielab.genemapper.composites.FlairCompositeMentionTagger
-
- All Implemented Interfaces:
de.julielab.geneexpbase.services.ShutdownRequiring
public class FlairCompositeMentionTagger extends Object implements de.julielab.geneexpbase.services.ShutdownRequiring
-
-
Constructor Summary
Constructors Constructor Description FlairCompositeMentionTagger(de.julielab.geneexpbase.services.CacheService cacheService, Configuration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidshutdown()org.apache.commons.lang3.tuple.Pair<List<CompositeToken>,String>tagGeneMention(String untokenizedMention, org.apache.commons.lang3.Range<Integer> geneOffsets, de.julielab.geneexpbase.genemodel.GeneDocument geneDocument)List<org.apache.commons.lang3.tuple.Pair<List<CompositeToken>,String>>tagGeneMention(List<String> untokenizedMentions, org.apache.commons.lang3.Range<Integer> geneOffsets, de.julielab.geneexpbase.genemodel.GeneDocument geneDocument)
-
-
-
Constructor Detail
-
FlairCompositeMentionTagger
@Inject public FlairCompositeMentionTagger(de.julielab.geneexpbase.services.CacheService cacheService, Configuration configuration) throws IOException- Throws:
IOException
-
-
Method Detail
-
tagGeneMention
public org.apache.commons.lang3.tuple.Pair<List<CompositeToken>,String> tagGeneMention(String untokenizedMention, org.apache.commons.lang3.Range<Integer> geneOffsets, de.julielab.geneexpbase.genemodel.GeneDocument geneDocument) throws IOException, InterruptedException
- Throws:
IOExceptionInterruptedException
-
tagGeneMention
public List<org.apache.commons.lang3.tuple.Pair<List<CompositeToken>,String>> tagGeneMention(List<String> untokenizedMentions, org.apache.commons.lang3.Range<Integer> geneOffsets, de.julielab.geneexpbase.genemodel.GeneDocument geneDocument) throws IOException, InterruptedException
- Throws:
IOExceptionInterruptedException
-
shutdown
public void shutdown()
- Specified by:
shutdownin interfacede.julielab.geneexpbase.services.ShutdownRequiring
-
-