public class AlchemyLanguage extends AlchemyService
Modifier and Type | Field and Description |
---|---|
static String |
ANCHOR_DATE
The Constant ANCHOR_DATE.
|
static String |
BASE_URL
The Constant BASE_URL.
|
static String |
COREFERENCE
The Constant COREFERENCE.
|
static String |
CQUERY
The Constant CQUERY.
|
static String |
DISAMBIGUATE
The Constant DISAMBIGUATE.
|
static String |
ENTITIES
The Constant ENTITIES.
|
static String |
EXTRACT
The Constant EXTRACT.
|
static String |
EXTRACT_LINK
The Constant EXTRACT_LINK.
|
static String |
FORCED_GLOSSARY
The Constant FORCED_GLOSSARY.
|
static String |
HTML
The Constant HTML.
|
static String |
KEYWORD_EXTRACT_MODE
The Constant KEYWORD_EXTRACT_MODE.
|
static String |
KEYWORDS
The Constant KEYWORDS.
|
static String |
KNOWLEDGE_GRAPH
The Constant KNOWLEDGE_GRAPH.
|
static String |
LINKED_DATA
The Constant LINKED_DATA.
|
static String |
MAX_RETRIEVE
The Constant MAX_RETRIEVE.
|
static String |
MODEL_ID
The Constant MODEL_ID.
|
static String |
QUOTATIONS
The Constant QUOTATIONS.
|
static String |
RAW
The Constant RAW.
|
static String |
REQUIRED_ENTITIES
The Constant REQUIRED_ENTITIES.
|
static String |
SENTIMENT
The Constant SENTIMENT.
|
static String |
SENTIMENT_EXCLUDE_ENTITIES
The Constant SENTIMENT_EXCLUDE_ENTITIES.
|
static String |
SHOW_SOURCE_TEXT
The Constant SHOW_SOURCE_TEXT.
|
static String |
SOURCE_TEXT
The Constant SOURCE_TEXT.
|
static String |
STRUCTURED_ENTITIES
The Constant STRUCTURED_ENTITIES.
|
static String |
TARGET
The Constant TARGET.
|
static String |
TARGETS
The Constant TARGETS.
|
static String |
TEXT
The Constant TEXT.
|
static String |
URL
The Constant URL.
|
static String |
USE_METADATA
The Constant USE_METADATA.
|
static 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(String apiKey)
Instantiates a new alchemy language service by apiKey.
|
Modifier and Type | Method and Description |
---|---|
ServiceCall<DocumentAuthors> |
getAuthors(Map<String,Object> params)
Extracts the authors from a URL or HTML.
|
ServiceCall<CombinedResults> |
getCombinedResults(Map<String,Object> params)
Automatically perform analysis using multiple features on any web page or posted (uploaded) HTML/text file.
|
ServiceCall<Concepts> |
getConcepts(Map<String,Object> params)
Extracts concepts tags for text, HTML, or a URLL.
|
ServiceCall<Dates> |
getDates(Map<String,Object> params)
Extracts dates for text, a URL or HTML.
|
ServiceCall<DocumentEmotion> |
getEmotion(Map<String,Object> params)
Detects emotions in a text, URL or HTML.
|
ServiceCall<Entities> |
getEntities(Map<String,Object> params)
Extracts a grouped, ranked list of named entities (people, companies, organizations, etc.) from text, a URL or
HTML.
|
ServiceCall<Feeds> |
getFeeds(Map<String,Object> params)
Detects the RSS/ATOM feeds for a URL or HTML.
|
ServiceCall<Keywords> |
getKeywords(Map<String,Object> params)
Extracts the keywords from text, a URL or HTML.
|
ServiceCall<Language> |
getLanguage(Map<String,Object> params)
Detects the language for text, a URL or HTML.
|
ServiceCall<Microformats> |
getMicroformats(Map<String,Object> params)
Parses the
Microformats for a URL or HTML. |
ServiceCall<DocumentPublicationDate> |
getPublicationDate(Map<String,Object> params)
Extracts publication date information when it is specified in web pages.
|
ServiceCall<SAORelations> |
getRelations(Map<String,Object> params)
Extracts Subject-Action-Object(SAO) relations from text, a URL or HTML.
|
ServiceCall<DocumentSentiment> |
getSentiment(Map<String,Object> params)
Calculates the sentiment for text, a URL or HTML.
|
ServiceCall<Taxonomies> |
getTaxonomy(Map<String,Object> params)
Categorized through the taxonomy call for text, HTML, or a URL.
|
ServiceCall<DocumentText> |
getText(Map<String,Object> params)
Extracts the cleaned text (removes ads, navigation, etc.) for a URL or HTML.
|
ServiceCall<DocumentTitle> |
getTitle(Map<String,Object> params)
Extracts the title for a URL or HTML.
|
ServiceCall<TypedRelations> |
getTypedRelations(Map<String,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, setEndPoint, setSkipAuthentication, setUsernameAndPassword, toString
public static final String BASE_URL
public static final String COREFERENCE
public static final String CQUERY
public static final String DISAMBIGUATE
public static final String ENTITIES
public static final String EXTRACT
public static final String EXTRACT_LINK
public static final String FORCED_GLOSSARY
public static final String HTML
public static final String KEYWORD_EXTRACT_MODE
public static final String KEYWORDS
public static final String KNOWLEDGE_GRAPH
public static final String LINKED_DATA
public static final String MAX_RETRIEVE
public static final String QUOTATIONS
public static final String RAW
public static final String REQUIRED_ENTITIES
public static final String SENTIMENT
public static final String SENTIMENT_EXCLUDE_ENTITIES
public static final String SHOW_SOURCE_TEXT
public static final String SOURCE_TEXT
public static final String STRUCTURED_ENTITIES
public static final String TARGET
public static final String TEXT
public static final String URL
public static final String USE_METADATA
public static final String XPATH
public static final String TARGETS
public static final String ANCHOR_DATE
public static final String MODEL_ID
public AlchemyLanguage()
public AlchemyLanguage(String apiKey)
apiKey
- the api keypublic void setLanguage(LanguageSelection language)
language
- The language to usepublic ServiceCall<DocumentAuthors> getAuthors(Map<String,Object> params)
params
- The parameters to be used in the service call, html or url should be specified.DocumentAuthors
public ServiceCall<Concepts> getConcepts(Map<String,Object> params)
params
- The parameters to be used in the service call, text, html or url should be specified.Concepts
public ServiceCall<DocumentPublicationDate> getPublicationDate(Map<String,Object> params)
params
- The parameters to be used in the service call, html or url should be specified.DocumentPublicationDate
public ServiceCall<Taxonomies> getTaxonomy(Map<String,Object> params)
params
- The parameters to be used in the service call, text, html or url should be specified.Taxonomies
public ServiceCall<CombinedResults> getCombinedResults(Map<String,Object> params)
params
- The parameters to be used in the service call, text, html or url should be specified.Microformats
public ServiceCall<Entities> getEntities(Map<String,Object> params)
params
- The parameters to be used in the service call, text, html or url should be specified.Entities
public ServiceCall<Feeds> getFeeds(Map<String,Object> params)
params
- The parameters to be used in the service call, html or url should be specified.Feeds
public ServiceCall<Keywords> getKeywords(Map<String,Object> params)
params
- The parameters to be used in the service call, text, html or url should be specified.Keywords
public ServiceCall<Language> getLanguage(Map<String,Object> params)
params
- The parameters to be used in the service call, text, html or url should be specified.Language
public ServiceCall<Microformats> getMicroformats(Map<String,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(Map<String,Object> params)
params
- The parameters to be used in the service call, text, html or url should be specified.SAORelations
public ServiceCall<DocumentSentiment> getSentiment(Map<String,Object> params)
params
- The parameters to be used in the service call, text, html or url should be specified.DocumentSentiment
public ServiceCall<DocumentText> getText(Map<String,Object> params)
params
- The parameters to be used in the service call, html or url should be specified.DocumentText
public ServiceCall<DocumentTitle> getTitle(Map<String,Object> params)
params
- The parameters to be used in the service call, html or url should be specified.DocumentTitle
public ServiceCall<DocumentEmotion> getEmotion(Map<String,Object> params)
params
- The parameters to be used in the service call, text, html or url should be specifiedDocumentEmotion
public ServiceCall<TypedRelations> getTypedRelations(Map<String,Object> params)
params
- The parameters to be used in the service call, text, html or url should be specifiedDocumentEmotion
Copyright © 2015–2016 IBM Watson. All rights reserved.