The LAILAPS neurolinguistic query suggestion service provide a RestFul API. It is trained based on a life science corpus, which has more than 1.5 billion terms and their corresponding life science definition. The corpus was trained with PubMed articles and UniProt database descriptions.
The API endpoint URL is:
http://webapps.ipk-gatersleben.de/lailapssuggestion/api/v1/semanticsuggestion/{query}
The RestFul services support the HTTP GET method. The parameter
{query}
, is the original query for which you want to get suggestions.
The result is returned in JSON format:
{"suggestions":[<suggestions>]}
Example API call
Query for alternatives for "heading date":
http://webapps.ipk-gatersleben.de/lailapssuggestion/api/v1/semanticsuggestion/heading date
JSON result is:
{"suggestions":["ghd7","panicle","tillering","hd3a","qtls controlling"]}
jar -xvf lailapssuggestion.war
corpus.location=/lailaps/pubmedcorpus_phrase_f.bin
<appender name="FILE" class="org.apache.log4j.RollingFileAppender"> <param name="maxFileSize" value="1000KB" /> <param name="maxBackupIndex" value="2" /> <param name="File" value="/lailaps/lailaps.log" /> <param name="threshold" value="INFO" /> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%p at (%d{MM/dd/yyyy/HH:mm:ss}) - [%x] %c{1}.%M(%L) | %m%n" /> </layout> </appender>
mvn clean compile
mvn clean package