public interface Texts
| Modifier and Type | Method and Description |
|---|---|
List<Fingerprint> |
getFingerprintBulk(Double sparsity,
Text... texts)
Retrieve a list of fingerprints obtained from input texts (one fingerprint per text).
|
List<Fingerprint> |
getFingerprints(String text)
Retrieve fingerprints for the input text (text is split and for each item a fingerprint is generated).
|
List<String> |
getKeywords(String text)
Retrieve a list of keywords from the input text.
|
List<Text> |
getSlices(String text)
Slice the text.
|
List<Text> |
getSlices(String text,
Boolean includeFingerprint)
Slice the text.
|
List<Text> |
getSlices(String text,
Pagination pagination,
Boolean includeFingerprint)
Slice the text.
|
List<String> |
getTokens(String text,
PosTag[] posTags)
Retrieve a list of lists of tokens for the input model: a list of sentences containing lists of
tokens.
|
Retina |
identifyRetinaByText(String text)
Identifies the language of the text and returns (if possible) a relevant
Retina object. |
List<String> getKeywords(String text) throws ApiException
model - : the input model.ApiException - : if there are some server or connection issues.List<Fingerprint> getFingerprints(String text) throws ApiException
model - : model for which a fingerprint is generated.ApiException - : if there are server or connection issues.List<Fingerprint> getFingerprintBulk(Double sparsity, Text... texts) throws com.fasterxml.jackson.core.JsonProcessingException, ApiException
texts - : input texts.sparsity - : the value used for re-sparsifying the expression. Not used here!com.fasterxml.jackson.core.JsonProcessingException - if it is impossible to generate the request using the input model.ApiException - : if there are server or connection issues.List<Text> getSlices(String text, Pagination pagination, Boolean includeFingerprint) throws ApiException
text - : a text to slice.pagination - : a pagination configuration.includeFingerprint - : true if a fingerprint should be provided with the response items.Text representation.ApiException - : if there are server or connection issues.List<Text> getSlices(String text, Boolean includeFingerprint) throws ApiException
DefaultValues.DEF_VALUE_START_INDEX
DefaultValues.DEF_VALUE_MAX_ITEMS_COUNT
text - : a text to slice.includeFingerprint - : true if a fingerprint should be provided with the response items.Text representation.ApiException - : if there are server or connection issues.List<Text> getSlices(String text) throws ApiException
DefaultValues.DEF_VALUE_START_INDEX
DefaultValues.DEF_VALUE_MAX_ITEMS_COUNT
DefaultValues.DEF_VALUE_PROVIDE_FINGERPRINTtext - : a text to slice.Text representation.ApiException - : if there are server or connection issues.List<String> getTokens(String text, PosTag[] posTags) throws ApiException
text - : input text.posTags - : array of pos tags used in the token generation.ApiException - : if there are server or connection issues.Retina identifyRetinaByText(String text) throws ApiException
Retina object.text - the input textRetina object.ApiException - : if there are server or connection issues.Copyright © 2015. All rights reserved.