Class SciGraphTermMiner
java.lang.Object
org.monarchinitiative.hpotextmining.core.miners.scigraph.SciGraphTermMiner
- All Implemented Interfaces:
TermMiner
This class allows using Monarch SciGraph Server for text mining.
TODO: take out the server configuration parameters to generalize it (and merge it to AskTudorServer) if necessary
- Since:
- 0.2.2
- Version:
- 0.2.3
- Author:
- Aaron Zhang
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classEach time the text mining is requested we send the query to the server using a new connection. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SciGraphTermMiner
-
-
Method Details
-
doMining
Performs mining of the provided text using SciGraph service;queryString is sent to the SciGraph API and the Thread is blocked until a JSON response is received. The response is then decoded intoMinedTerms.- Specified by:
doMiningin interfaceTermMiner- Parameters:
query- String with text to be mined for HPO terms- Returns:
SetofMinedTerms representing identified HPO terms. The set is empty, if I/O error occurs or if URL/query are invalid- Throws:
TermMinerException- if there is any problem with HPO mining
-