public class AlchemyLanguage extends AlchemyService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ANCHOR_DATE
The Constant ANCHOR_DATE.
|
static java.lang.String |
BASE_URL
The Constant BASE_URL.
|
static java.lang.String |
COREFERENCE
The Constant COREFERENCE.
|
static java.lang.String |
CQUERY
The Constant CQUERY.
|
static java.lang.String |
DISAMBIGUATE
The Constant DISAMBIGUATE.
|
static java.lang.String |
ENTITIES
The Constant ENTITIES.
|
static java.lang.String |
EXTRACT
The Constant EXTRACT.
|
static java.lang.String |
EXTRACT_LINK
The Constant EXTRACT_LINK.
|
static java.lang.String |
FORCED_GLOSSARY
The Constant FORCED_GLOSSARY.
|
static java.lang.String |
HTML
The Constant HTML.
|
static java.lang.String |
KEYWORD_EXTRACT_MODE
The Constant KEYWORD_EXTRACT_MODE.
|
static java.lang.String |
KEYWORDS
The Constant KEYWORDS.
|
static java.lang.String |
KNOWLEDGE_GRAPH
The Constant KNOWLEDGE_GRAPH.
|
static java.lang.String |
LINKED_DATA
The Constant LINKED_DATA.
|
static java.lang.String |
MAX_RETRIEVE
The Constant MAX_RETRIEVE.
|
static java.lang.String |
MODEL_ID
The Constant MODEL_ID.
|
static java.lang.String |
QUOTATIONS
The Constant QUOTATIONS.
|
static java.lang.String |
RAW
The Constant RAW.
|
static java.lang.String |
REQUIRED_ENTITIES
The Constant REQUIRED_ENTITIES.
|
static java.lang.String |
SENTIMENT
The Constant SENTIMENT.
|
static java.lang.String |
SENTIMENT_EXCLUDE_ENTITIES
The Constant SENTIMENT_EXCLUDE_ENTITIES.
|
static java.lang.String |
SHOW_SOURCE_TEXT
The Constant SHOW_SOURCE_TEXT.
|
static java.lang.String |
SOURCE_TEXT
The Constant SOURCE_TEXT.
|
static java.lang.String |
STRUCTURED_ENTITIES
The Constant STRUCTURED_ENTITIES.
|
static java.lang.String |
TARGET
The Constant TARGET.
|
static java.lang.String |
TARGETS
The Constant TARGETS.
|
static java.lang.String |
TEXT
The Constant TEXT.
|
static java.lang.String |
URL
The Constant URL.
|
static java.lang.String |
USE_METADATA
The Constant USE_METADATA.
|
static java.lang.String |
XPATH
The Constant XPATH.
|
ENDPOINT, JSONP, OUTPUT_MODE
defaultHeaders, MESSAGE_CODE, MESSAGE_ERROR, skipAuthentication, VERSION
Constructor and Description |
---|
AlchemyLanguage()
Instantiates a new alchemy data news service.
|
AlchemyLanguage(java.lang.String apiKey)
Instantiates a new alchemy language service by apiKey.
|
Modifier and Type | Method and Description |
---|---|
ServiceCall<DocumentAuthors> |
getAuthors(java.util.Map<java.lang.String,java.lang.Object> params)
Extracts the authors from a URL or HTML.
|
ServiceCall<CombinedResults> |
getCombinedResults(java.util.Map<java.lang.String,java.lang.Object> params)
Automatically perform analysis using multiple features on any web page or posted (uploaded) HTML/text file.
|
ServiceCall<Concepts> |
getConcepts(java.util.Map<java.lang.String,java.lang.Object> params)
Extracts concepts tags for text, HTML, or a URLL.
|
ServiceCall<Dates> |
getDates(java.util.Map<java.lang.String,java.lang.Object> params)
Extracts dates for text, a URL or HTML.
|
ServiceCall<DocumentEmotion> |
getEmotion(java.util.Map<java.lang.String,java.lang.Object> params)
Detects emotions in a text, URL or HTML.
|
ServiceCall<Entities> |
getEntities(java.util.Map<java.lang.String,java.lang.Object> params)
Extracts a grouped, ranked list of named entities (people, companies, organizations, etc.) from text, a URL or
HTML.
|
ServiceCall<Feeds> |
getFeeds(java.util.Map<java.lang.String,java.lang.Object> params)
Detects the RSS/ATOM feeds for a URL or HTML.
|
ServiceCall<Keywords> |
getKeywords(java.util.Map<java.lang.String,java.lang.Object> params)
Extracts the keywords from text, a URL or HTML.
|
ServiceCall<Language> |
getLanguage(java.util.Map<java.lang.String,java.lang.Object> params)
Detects the language for text, a URL or HTML.
|
ServiceCall<Microformats> |
getMicroformats(java.util.Map<java.lang.String,java.lang.Object> params)
Parses the
Microformats for a URL or HTML. |
ServiceCall<DocumentPublicationDate> |
getPublicationDate(java.util.Map<java.lang.String,java.lang.Object> params)
Extracts publication date information when it is specified in web pages.
|
ServiceCall<SAORelations> |
getRelations(java.util.Map<java.lang.String,java.lang.Object> params)
Extracts Subject-Action-Object(SAO) relations from text, a URL or HTML.
|
ServiceCall<DocumentSentiment> |
getSentiment(java.util.Map<java.lang.String,java.lang.Object> params)
Calculates the sentiment for text, a URL or HTML.
|
ServiceCall<Taxonomies> |
getTaxonomy(java.util.Map<java.lang.String,java.lang.Object> params)
Categorized through the taxonomy call for text, HTML, or a URL.
|
ServiceCall<DocumentText> |
getText(java.util.Map<java.lang.String,java.lang.Object> params)
Extracts the cleaned text (removes ads, navigation, etc.) for a URL or HTML.
|
ServiceCall<DocumentTitle> |
getTitle(java.util.Map<java.lang.String,java.lang.Object> params)
Extracts the title for a URL or HTML.
|
ServiceCall<TypedRelations> |
getTypedRelations(java.util.Map<java.lang.String,java.lang.Object> params)
Finds entities and their relationships from a text, URL or HTML.
|
void |
setLanguage(LanguageSelection language)
Allows users to set language of input text.
|
getInputFormat, processServiceCall, setAuthentication
configureHttpClient, createServiceCall, getApiKey, getEndPoint, getName, getToken, setApiKey, setDefaultHeaders, setDefaultHeaders, setEndPoint, setSkipAuthentication, setUsernameAndPassword, toString
public static final java.lang.String BASE_URL
public static final java.lang.String COREFERENCE
public static final java.lang.String CQUERY
public static final java.lang.String DISAMBIGUATE
public static final java.lang.String ENTITIES
public static final java.lang.String EXTRACT
public static final java.lang.String EXTRACT_LINK
public static final java.lang.String FORCED_GLOSSARY
public static final java.lang.String HTML
public static final java.lang.String KEYWORD_EXTRACT_MODE
public static final java.lang.String KEYWORDS
public static final java.lang.String KNOWLEDGE_GRAPH
public static final java.lang.String LINKED_DATA
public static final java.lang.String MAX_RETRIEVE
public static final java.lang.String QUOTATIONS
public static final java.lang.String RAW
public static final java.lang.String REQUIRED_ENTITIES
public static final java.lang.String SENTIMENT
public static final java.lang.String SENTIMENT_EXCLUDE_ENTITIES
public static final java.lang.String SHOW_SOURCE_TEXT
public static final java.lang.String SOURCE_TEXT
public static final java.lang.String STRUCTURED_ENTITIES
public static final java.lang.String TARGET
public static final java.lang.String TEXT
public static final java.lang.String URL
public static final java.lang.String USE_METADATA
public static final java.lang.String XPATH
public static final java.lang.String TARGETS
public static final java.lang.String ANCHOR_DATE
public static final java.lang.String MODEL_ID
public AlchemyLanguage()
public AlchemyLanguage(java.lang.String apiKey)
apiKey
- the api keypublic void setLanguage(LanguageSelection language)
language
- The language to usepublic ServiceCall<DocumentAuthors> getAuthors(java.util.Map<java.lang.String,java.lang.Object> params)
params
- The parameters to be used in the service call, html or url should be specified.DocumentAuthors
public ServiceCall<Concepts> getConcepts(java.util.Map<java.lang.String,java.lang.Object> params)
params
- The parameters to be used in the service call, text, html or url should be specified.Concepts
public ServiceCall<DocumentPublicationDate> getPublicationDate(java.util.Map<java.lang.String,java.lang.Object> params)
params
- The parameters to be used in the service call, html or url should be specified.DocumentPublicationDate
public ServiceCall<Taxonomies> getTaxonomy(java.util.Map<java.lang.String,java.lang.Object> params)
params
- The parameters to be used in the service call, text, html or url should be specified.Taxonomies
public ServiceCall<CombinedResults> getCombinedResults(java.util.Map<java.lang.String,java.lang.Object> params)
params
- The parameters to be used in the service call, text, html or url should be specified.Microformats
public ServiceCall<Entities> getEntities(java.util.Map<java.lang.String,java.lang.Object> params)
params
- The parameters to be used in the service call, text, html or url should be specified.Entities
public ServiceCall<Feeds> getFeeds(java.util.Map<java.lang.String,java.lang.Object> params)
params
- The parameters to be used in the service call, html or url should be specified.Feeds
public ServiceCall<Keywords> getKeywords(java.util.Map<java.lang.String,java.lang.Object> params)
params
- The parameters to be used in the service call, text, html or url should be specified.Keywords
public ServiceCall<Language> getLanguage(java.util.Map<java.lang.String,java.lang.Object> params)
params
- The parameters to be used in the service call, text, html or url should be specified.Language
public ServiceCall<Microformats> getMicroformats(java.util.Map<java.lang.String,java.lang.Object> params)
Microformats
for a URL or HTML.params
- The parameters to be used in the service call, html or url should be specifiedMicroformats
public ServiceCall<SAORelations> getRelations(java.util.Map<java.lang.String,java.lang.Object> params)
params
- The parameters to be used in the service call, text, html or url should be specified.SAORelations
public ServiceCall<DocumentSentiment> getSentiment(java.util.Map<java.lang.String,java.lang.Object> params)
params
- The parameters to be used in the service call, text, html or url should be specified.DocumentSentiment
public ServiceCall<DocumentText> getText(java.util.Map<java.lang.String,java.lang.Object> params)
params
- The parameters to be used in the service call, html or url should be specified.DocumentText
public ServiceCall<DocumentTitle> getTitle(java.util.Map<java.lang.String,java.lang.Object> params)
params
- The parameters to be used in the service call, html or url should be specified.DocumentTitle
public ServiceCall<DocumentEmotion> getEmotion(java.util.Map<java.lang.String,java.lang.Object> params)
params
- The parameters to be used in the service call, text, html or url should be specifiedDocumentEmotion
public ServiceCall<TypedRelations> getTypedRelations(java.util.Map<java.lang.String,java.lang.Object> params)
params
- The parameters to be used in the service call, text, html or url should be specifiedDocumentEmotion
public ServiceCall<Dates> getDates(java.util.Map<java.lang.String,java.lang.Object> params)
params
- The parameters to be used in the service call, text, html or url should be specified.Dates