Class TransformerClassifier
- java.lang.Object
-
- de.julielab.genemapper.classification.TransformerClassifier
-
- All Implemented Interfaces:
de.julielab.geneexpbase.services.ShutdownRequiring
public class TransformerClassifier extends Object implements de.julielab.geneexpbase.services.ShutdownRequiring
-
-
Constructor Summary
Constructors Constructor Description TransformerClassifier(de.julielab.geneexpbase.services.CacheService cacheService, String modelPath, de.julielab.geneexpbase.configuration.Configuration configuration)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Float>classifySentencePairs(List<String> l1, List<String> l2)StringgetModelPath()static voidmain(String[] args)voidshutdown()
-
-
-
Constructor Detail
-
TransformerClassifier
@Inject public TransformerClassifier(de.julielab.geneexpbase.services.CacheService cacheService, String modelPath, de.julielab.geneexpbase.configuration.Configuration configuration) throws IOException- Throws:
IOException
-
-
Method Detail
-
main
public static void main(String[] args) throws IOException
- Throws:
IOException
-
getModelPath
public String getModelPath()
-
classifySentencePairs
public List<Float> classifySentencePairs(List<String> l1, List<String> l2) throws IOException
- Throws:
IOException
-
shutdown
public void shutdown()
- Specified by:
shutdownin interfacede.julielab.geneexpbase.services.ShutdownRequiring
-
-