Пример #1
0
 /**
  * Returns a list of similar terms using the Expressions API.
  *
  * @param fp a Fingerprint from which to get similar terms.
  * @return List view of similar {@link Term}s
  * @throws ApiException
  * @throws JsonProcessingException
  */
 List<Term> getSimilarTerms(Fingerprint fp) throws ApiException, JsonProcessingException {
   return client.getSimilarTermsForExpression(fp);
 }
Пример #2
0
 /**
  * Returns a list of {@link Term}s using the Terms API.
  *
  * @param term a term.
  * @param includeFingerprint true if call should return the positions array, false if not.
  * @return
  * @throws ApiException
  * @throws JsonProcessingException
  */
 List<Term> getTerms(String term, boolean includeFingerprint)
     throws ApiException, JsonProcessingException {
   return client.getTerms(term, 0, 10, includeFingerprint);
 }