Watson Developer Cloud Unity SDK
1.0.0
The Unity SDK uses the Watson Developer Cloud services, a collection of REST APIs and SDKs that use cognitive computing to solve complex problems.
|
This class wraps the Alchemy API Services. Alchemy Language AlchemyData News More...
Classes | |
class | CombinedCallRequest |
Combined call request. More... | |
class | DetectFeedsRequest |
Detect feeds request. More... | |
class | GetAuthorsRequest |
Get authors request. More... | |
class | GetDatesRequest |
Get dates request. More... | |
class | GetEmotionsRequest |
Get emotions request. More... | |
class | GetEntitiesRequest |
Get entities request. More... | |
class | GetKeywordsRequest |
Get keywords request. More... | |
class | GetLanguagesRequest |
Get languages request. More... | |
class | GetMicroformatsRequest |
Get microformats request. More... | |
class | GetNewsRequest |
Get News request. More... | |
class | GetPublicationDateRequest |
Get publication date request. More... | |
class | GetRankedConceptsRequest |
Get ranked concepts request. More... | |
class | GetRankedTaxomomyRequest |
Get ranked taxomomy request. More... | |
class | GetRelationsRequest |
Get relations request. More... | |
class | GetTargetedSentimentRequest |
Get targeted sentiment request. More... | |
class | GetTextRequest |
Get text request. More... | |
class | GetTextSentimentRequest |
Get text sentiment request. More... | |
class | GetTitleRequest |
Get title request. More... | |
Public Member Functions | |
AlchemyAPI (Credentials credentials) | |
delegate void | OnGetAuthors (AuthorsData authorExtractionData, string data) |
On get authors delegate. More... | |
bool | GetAuthors (OnGetAuthors callback, string source, string customData=default(string)) |
Extracts authors from a source. More... | |
delegate void | OnGetRankedConcepts (ConceptsData conceptExtractionData, string data) |
On get ranked concepts delegate. More... | |
bool | GetRankedConcepts (OnGetRankedConcepts callback, string source, int maxRetrieve=8, bool includeKnowledgeGraph=false, bool includeLinkedData=true, bool includeSourceText=false, string customData=default(string)) |
Extracts concepts from a source. More... | |
delegate void | OnGetDates (DateData dateData, string data) |
On get dates delegate. More... | |
bool | GetDates (OnGetDates callback, string source, string anchorDate=default(string), bool includeSourceText=false, string customData=default(string)) |
Extracts dates from a source. More... | |
delegate void | OnGetEmotions (EmotionData emotionData, string data) |
On get emotions delegate. More... | |
bool | GetEmotions (OnGetEmotions callback, string source, bool includeSourceText=false, string customData=default(string)) |
Gets the emotions from a source. More... | |
delegate void | OnGetEntities (EntityData entityData, string data) |
On get entities delegate. More... | |
bool | ExtractEntities (OnGetEntities callback, string source, int maxRetrieve=50, bool resolveCoreference=true, bool disambiguate=true, bool includeKnowledgeGraph=false, bool includeLinkedData=true, bool includeQuotations=false, bool analyzeSentiment=false, bool includeSourceText=false, bool extractStructuredEntities=true, string customData=default(string)) |
Extracts the entities from a source. More... | |
delegate void | OnDetectFeeds (FeedData feedData, string data) |
On detect feeds delegate. More... | |
bool | DetectFeeds (OnDetectFeeds callback, string source, string customData=default(string)) |
Detects RSS feeds in a source. More... | |
delegate void | OnGetKeywords (KeywordData keywordData, string data) |
On get keywords delegate. More... | |
bool | ExtractKeywords (OnGetKeywords callback, string source, int maxRetrieve=50, bool includeKnowledgeGraph=false, bool analyzeSentiment=false, bool includeSourceText=false, string customData=default(string)) |
Extracts the keywords from a source. More... | |
delegate void | OnGetLanguages (LanguageData languageData, string data) |
On get languages. More... | |
bool | GetLanguages (OnGetLanguages callback, string source, bool includeSourceText=false, string customData=default(string)) |
Extracts the language a source is written. More... | |
delegate void | OnGetMicroformats (MicroformatData microformatData, string data) |
On get microformats. More... | |
bool | GetMicroformats (OnGetMicroformats callback, string source, string customData=default(string)) |
Extracts microformats from a URL source. More... | |
delegate void | OnGetPublicationDate (PubDateData pubDateData, string data) |
On get publication date delegate. More... | |
bool | GetPublicationDate (OnGetPublicationDate callback, string source, string customData=default(string)) |
Extracts the publication date from a source. More... | |
delegate void | OnGetRelations (RelationsData relationData, string data) |
On get relations delegate. More... | |
bool | GetRelations (OnGetRelations callback, string source, int maxRetrieve=50, bool includeKeywords=false, bool includeEntities=false, bool requireEntities=false, bool resolveCoreferences=true, bool disambiguateEntities=true, bool includeKnowledgeGraph=false, bool includeLinkedData=true, bool analyzeSentiment=false, bool excludeEntitiesInSentiment=false, bool includeSourceText=false, string customData=default(string)) |
Extracts the relations from a source. More... | |
delegate void | OnGetTextSentiment (SentimentData sentimentData, string data) |
On get text sentiment delegate. More... | |
bool | GetTextSentiment (OnGetTextSentiment callback, string source, bool includeSourceText=false, string customData=default(string)) |
Extracts the sentiment from a source. More... | |
delegate void | OnGetTargetedSentiment (TargetedSentimentData targetedSentimentData, string data) |
On get targeted sentiment delegate. More... | |
bool | GetTargetedSentiment (OnGetTargetedSentiment callback, string source, string targets, bool includeSourceText=false, string customData=default(string)) |
Extracts targeted sentiment from a source. More... | |
delegate void | OnGetRankedTaxonomy (TaxonomyData taxonomyData, string data) |
On get ranked taxonomy delegate. More... | |
bool | GetRankedTaxonomy (OnGetRankedTaxonomy callback, string source, bool includeSourceText=false, string customData=default(string)) |
Extracts the ranked taxonomy from a source. More... | |
delegate void | OnGetText (TextData textData, string data) |
On get text delegate. More... | |
bool | GetText (OnGetText callback, string source, bool extractLinks=false, bool useMetadata=true, string customData=default(string)) |
Extracts text from a source. More... | |
bool | GetRawText (OnGetText callback, string source, string customData=default(string)) |
Gets raw text from a source. More... | |
delegate void | OnGetTitle (Title titleData, string data) |
On get title delegate. More... | |
bool | GetTitle (OnGetTitle callback, string source, bool useMetadata=true, string customData=default(string)) |
Extracts the title from a source. More... | |
delegate void | OnGetCombinedData (CombinedCallData combinedData, string data) |
On get combined data delegate. More... | |
bool | GetCombinedData (OnGetCombinedData callback, string source, bool includeSourceText=false, bool extractAuthors=false, bool extractConcepts=true, bool extractDates=false, bool extractDocEmotion=false, bool extractEntities=true, bool extractFeeds=false, bool extractKeywords=true, bool extractPubDate=false, bool extractRelations=false, bool extractDocSentiment=false, bool extractTaxonomy=true, bool extractTitle=false, bool extractPageImage=false, bool extractImageKeywords=false, string customData=default(string)) |
Access multiple services in one call. More... | |
delegate void | OnGetNews (NewsResponse newsData, string data) |
On get news delegate. More... | |
bool | GetNews (OnGetNews callback, string[] returnFields=default(string[]), Dictionary< string, string > queryFields=null, string startDate="now-1d", string endDate="now", int maxResults=10, string timeSlice=default(string), string customData=default(string)) |
Gets news. More... | |
string | GetServiceID () |
<exclude> More... | |
Properties | |
string | Url [get, set] |
Gets and sets the endpoint URL for the service. More... | |
Credentials | Credentials [get, set] |
Gets and sets the credentials of the service. Replace the default endpoint if endpoint is defined. More... | |
This class wraps the Alchemy API Services. Alchemy Language AlchemyData News
|
inline |
|
inline |
Detects RSS feeds in a source.
true
, if feeds was detected, false
otherwise.callback | Callback. |
source | URL to detect feeds. |
customData | Custom data. |
|
inline |
Extracts the entities from a source.
true
, if entities was extracted, false
otherwise.callback | Callback. |
source | HTML, URL or Text source. |
maxRetrieve | Maximum results retreived. |
resolveCoreference | If set to true resolve coreference. |
disambiguate | If set to true disambiguate. |
includeKnowledgeGraph | If set to true include knowledge graph. |
includeLinkedData | If set to true include linked data. |
includeQuotations | If set to true include quotations. |
analyzeSentiment | If set to true analyze sentiment. |
includeSourceText | If set to true include source text. |
extractStructuredEntities | If set to true extract structured entities. |
customData | Custom data. |
|
inline |
Extracts the keywords from a source.
true
, if keywords was extracted, false
otherwise.callback | Callback. |
source | HTML, URL or Text source. |
maxRetrieve | Maximum results retreived. |
includeKnowledgeGraph | If set to true include knowledge graph. |
analyzeSentiment | If set to true analyze sentiment. |
includeSourceText | If set to true include source text. |
customData | Custom data. |
|
inline |
Extracts authors from a source.
true
, if authors was gotten, false
otherwise.callback | Callback. |
source | URL or HTML source. |
customData | Custom data. |
|
inline |
Access multiple services in one call.
true
, if combined data was gotten, false
otherwise.callback | Callback. |
source | HTML, URL or Text source. |
includeSourceText | If set to true include source text. |
extractAuthors | If set to true extract authors. |
extractConcepts | If set to true extract concepts. |
extractDates | If set to true extract dates. |
extractDocEmotion | If set to true extract document emotion. |
extractEntities | If set to true extract entities. |
extractFeeds | If set to true extract feeds. |
extractKeywords | If set to true extract keywords. |
extractPubDate | If set to true extract pub date. |
extractRelations | If set to true extract relations. |
extractDocSentiment | If set to true extract document sentiment. |
extractTaxonomy | If set to true extract taxonomy. |
extractTitle | If set to true extract title. |
extractPageImage | If set to true extract page image. |
extractImageKeywords | If set to true extract image keywords. |
customData | Custom data. |
|
inline |
Extracts dates from a source.
true
, if dates was gotten, false
otherwise.callback | Callback. |
source | HTML, URL or Text source. |
anchorDate | Anchor date in the yyyy-mm-dd hh:mm:ss format. If this is not set, anchor date is set to today's date and time. |
includeSourceText | If set to true include source text. |
customData | Custom data. |
|
inline |
Gets the emotions from a source.
true
, if emotions was gotten, false
otherwise.callback | Callback. |
source | HTML, URL or Text source. |
includeSourceText | If set to true include source text. |
customData | Custom data. |
|
inline |
Extracts the language a source is written.
true
, if languages was gotten, false
otherwise.callback | Callback. |
source | HTML, URL or Text source. |
includeSourceText | If set to true include source text. |
customData | Custom data. |
|
inline |
|
inline |
Gets news.
true
, if news was gotten, false
otherwise.callback | Callback. |
returnFields | Fields returned. |
queryFields | Values for each field. |
startDate | Date to start the query. |
endDate | Date to end the query. |
maxResults | Maximum number of results. |
timeSlice | the duration (in seconds) of each time slice. a human readable duration is also acceptable e.g. '1d', '4h', '1M', etc. If set, this parameter causes the query engine to return a time series representing the count in each slice of time. If omitted, the query engine returns the total count over the time duration. |
customData | Custom data. |
|
inline |
Extracts the publication date from a source.
true
, if publication date was gotten, false
otherwise.callback | Callback. |
source | URL or HTML sources. |
customData | Custom data. |
|
inline |
Extracts concepts from a source.
true
, if ranked concepts was gotten, false
otherwise.
|
inline |
Extracts the ranked taxonomy from a source.
true
, if ranked taxonomy was gotten, false
otherwise.callback | Callback. |
source | HTML, URL or Text source. |
includeSourceText | If set to true include source text. |
customData | Custom data. |
|
inline |
Gets raw text from a source.
true
, if raw text was gotten, false
otherwise.callback | Callback. |
source | HTML or URL source. |
customData | Custom data. |
|
inline |
Extracts the relations from a source.
true
, if relations was gotten, false
otherwise.callback | Callback. |
source | HTML, URL or Text source. |
maxRetrieve | Max retrieve. |
includeKeywords | If set to true include keywords. |
includeEntities | If set to true include entities. |
requireEntities | If set to true require entities. |
resolveCoreferences | If set to true resolve coreferences. |
disambiguateEntities | If set to true disambiguate entities. |
includeKnowledgeGraph | If set to true include knowledge graph. |
includeLinkedData | If set to true include linked data. |
analyzeSentiment | If set to true analyze sentiment. |
excludeEntitiesInSentiment | If set to true exclude entities in sentiment. |
includeSourceText | If set to true include source text. |
customData | Custom data. |
|
inline |
<exclude>
Implements IBM.Watson.DeveloperCloud.Services.IWatsonService.
|
inline |
Extracts targeted sentiment from a source.
true
, if targeted sentiment was gotten, false
otherwise.callback | Callback. |
source | HTML, URL or Text source. |
targets | Targets. |
includeSourceText | If set to true include source text. |
customData | Custom data. |
|
inline |
Extracts text from a source.
true
, if text was gotten, false
otherwise.callback | Callback. |
source | HTML or URL source. |
extractLinks | If set to true extract links. |
useMetadata | If set to true use metadata. |
customData | Custom data. |
|
inline |
Extracts the sentiment from a source.
true
, if text sentiment was gotten, false
otherwise.callback | Callback. |
source | HTML, URL or Text source. |
includeSourceText | If set to true include source text. |
customData | Custom data. |
|
inline |
Extracts the title from a source.
true
, if title was gotten, false
otherwise.callback | Callback. |
source | HTML or URL source. |
useMetadata | If set to true use metadata. |
customData | Custom data. |
delegate void IBM.Watson.DeveloperCloud.Services.AlchemyAPI.v1.AlchemyAPI.OnDetectFeeds | ( | FeedData | feedData, |
string | data | ||
) |
On detect feeds delegate.
delegate void IBM.Watson.DeveloperCloud.Services.AlchemyAPI.v1.AlchemyAPI.OnGetAuthors | ( | AuthorsData | authorExtractionData, |
string | data | ||
) |
On get authors delegate.
delegate void IBM.Watson.DeveloperCloud.Services.AlchemyAPI.v1.AlchemyAPI.OnGetCombinedData | ( | CombinedCallData | combinedData, |
string | data | ||
) |
On get combined data delegate.
delegate void IBM.Watson.DeveloperCloud.Services.AlchemyAPI.v1.AlchemyAPI.OnGetDates | ( | DateData | dateData, |
string | data | ||
) |
On get dates delegate.
delegate void IBM.Watson.DeveloperCloud.Services.AlchemyAPI.v1.AlchemyAPI.OnGetEmotions | ( | EmotionData | emotionData, |
string | data | ||
) |
On get emotions delegate.
delegate void IBM.Watson.DeveloperCloud.Services.AlchemyAPI.v1.AlchemyAPI.OnGetEntities | ( | EntityData | entityData, |
string | data | ||
) |
On get entities delegate.
delegate void IBM.Watson.DeveloperCloud.Services.AlchemyAPI.v1.AlchemyAPI.OnGetKeywords | ( | KeywordData | keywordData, |
string | data | ||
) |
On get keywords delegate.
delegate void IBM.Watson.DeveloperCloud.Services.AlchemyAPI.v1.AlchemyAPI.OnGetLanguages | ( | LanguageData | languageData, |
string | data | ||
) |
On get languages.
delegate void IBM.Watson.DeveloperCloud.Services.AlchemyAPI.v1.AlchemyAPI.OnGetMicroformats | ( | MicroformatData | microformatData, |
string | data | ||
) |
On get microformats.
delegate void IBM.Watson.DeveloperCloud.Services.AlchemyAPI.v1.AlchemyAPI.OnGetNews | ( | NewsResponse | newsData, |
string | data | ||
) |
On get news delegate.
delegate void IBM.Watson.DeveloperCloud.Services.AlchemyAPI.v1.AlchemyAPI.OnGetPublicationDate | ( | PubDateData | pubDateData, |
string | data | ||
) |
On get publication date delegate.
delegate void IBM.Watson.DeveloperCloud.Services.AlchemyAPI.v1.AlchemyAPI.OnGetRankedConcepts | ( | ConceptsData | conceptExtractionData, |
string | data | ||
) |
On get ranked concepts delegate.
delegate void IBM.Watson.DeveloperCloud.Services.AlchemyAPI.v1.AlchemyAPI.OnGetRankedTaxonomy | ( | TaxonomyData | taxonomyData, |
string | data | ||
) |
On get ranked taxonomy delegate.
delegate void IBM.Watson.DeveloperCloud.Services.AlchemyAPI.v1.AlchemyAPI.OnGetRelations | ( | RelationsData | relationData, |
string | data | ||
) |
On get relations delegate.
delegate void IBM.Watson.DeveloperCloud.Services.AlchemyAPI.v1.AlchemyAPI.OnGetTargetedSentiment | ( | TargetedSentimentData | targetedSentimentData, |
string | data | ||
) |
On get targeted sentiment delegate.
delegate void IBM.Watson.DeveloperCloud.Services.AlchemyAPI.v1.AlchemyAPI.OnGetText | ( | TextData | textData, |
string | data | ||
) |
On get text delegate.
delegate void IBM.Watson.DeveloperCloud.Services.AlchemyAPI.v1.AlchemyAPI.OnGetTextSentiment | ( | SentimentData | sentimentData, |
string | data | ||
) |
On get text sentiment delegate.
delegate void IBM.Watson.DeveloperCloud.Services.AlchemyAPI.v1.AlchemyAPI.OnGetTitle | ( | Title | titleData, |
string | data | ||
) |
On get title delegate.
|
getset |
Gets and sets the credentials of the service. Replace the default endpoint if endpoint is defined.
|
getset |
Gets and sets the endpoint URL for the service.