Structures
The following structures are available globally.
-
Results of the analysis, organized by feature.
See moreDeclaration
Swift
public struct AnalysisResults : Codable, Equatable
-
API usage information for the request.
See moreDeclaration
Swift
public struct AnalysisResultsUsage : Codable, Equatable
-
The author of the analyzed content.
See moreDeclaration
Swift
public struct Author : Codable, Equatable
-
Categories model.
See moreDeclaration
Swift
public struct CategoriesModel : Codable, Equatable
-
List of categories models.
See moreDeclaration
Swift
public struct CategoriesModelList : Codable, Equatable
-
Returns a hierarchical taxonomy of the content. The top three categories are returned by default. Supported languages: Arabic, English, French, German, Italian, Japanese, Korean, Portuguese, Spanish.
See moreDeclaration
Swift
public struct CategoriesOptions : Codable, Equatable
-
Relevant text that contributed to the categorization.
See moreDeclaration
Swift
public struct CategoriesRelevantText : Codable, Equatable
-
A categorization of the analyzed text.
See moreDeclaration
Swift
public struct CategoriesResult : Codable, Equatable
-
Information that helps to explain what contributed to the categories result.
See moreDeclaration
Swift
public struct CategoriesResultExplanation : Codable, Equatable
-
Classifications model.
See moreDeclaration
Swift
public struct ClassificationsModel : Codable, Equatable
-
List of classifications models.
See moreDeclaration
Swift
public struct ClassificationsModelList : Codable, Equatable
-
Returns text classifications for the content. Supported languages: English only.
See moreDeclaration
Swift
public struct ClassificationsOptions : Codable, Equatable
-
A classification of the analyzed text.
See moreDeclaration
Swift
public struct ClassificationsResult : Codable, Equatable
-
Returns high-level concepts in the content. For example, a research paper about deep learning might return the concept, “Artificial Intelligence” although the term is not mentioned. Supported languages: English, French, German, Italian, Japanese, Korean, Portuguese, Spanish.
See moreDeclaration
Swift
public struct ConceptsOptions : Codable, Equatable
-
The general concepts referenced or alluded to in the analyzed text.
See moreDeclaration
Swift
public struct ConceptsResult : Codable, Equatable
-
Delete model results.
See moreDeclaration
Swift
public struct DeleteModelResults : Codable, Equatable
-
Disambiguation information for the entity.
See moreDeclaration
Swift
public struct DisambiguationResult : Codable, Equatable
-
Emotion results for the document as a whole.
See moreDeclaration
Swift
public struct DocumentEmotionResults : Codable, Equatable
-
DocumentSentimentResults.
See moreDeclaration
Swift
public struct DocumentSentimentResults : Codable, Equatable
-
Detects anger, disgust, fear, joy, or sadness that is conveyed in the content or by the context around target phrases specified in the targets parameter. You can analyze emotion for detected entities with
See moreentities.emotion
and for keywords withkeywords.emotion
. Supported languages: English.Declaration
Swift
public struct EmotionOptions : Codable, Equatable
-
The detected anger, disgust, fear, joy, or sadness that is conveyed by the content. Emotion information can be returned for detected entities, keywords, or user-specified target phrases found in the text.
See moreDeclaration
Swift
public struct EmotionResult : Codable, Equatable
-
EmotionScores.
See moreDeclaration
Swift
public struct EmotionScores : Codable, Equatable
-
Identifies people, cities, organizations, and other entities in the content. For more information, see Entity types and subtypes. Supported languages: English, French, German, Italian, Japanese, Korean, Portuguese, Russian, Spanish, Swedish. Arabic, Chinese, and Dutch are supported only through custom models.
See moreDeclaration
Swift
public struct EntitiesOptions : Codable, Equatable
-
The important people, places, geopolitical entities and other types of entities in your content.
See moreDeclaration
Swift
public struct EntitiesResult : Codable, Equatable
-
EntityMention.
See moreDeclaration
Swift
public struct EntityMention : Codable, Equatable
-
FeatureSentimentResults.
See moreDeclaration
Swift
public struct FeatureSentimentResults : Codable, Equatable
-
Analysis features and options.
See moreDeclaration
Swift
public struct Features : Codable, Equatable
-
Webpage metadata, such as the author and the title of the page.
See moreDeclaration
Swift
public struct FeaturesResultsMetadata : Codable, Equatable
-
RSS or ATOM feed found on the webpage.
See moreDeclaration
Swift
public struct Feed : Codable, Equatable
-
Returns important keywords in the content. Supported languages: English, French, German, Italian, Japanese, Korean, Portuguese, Russian, Spanish, Swedish.
See moreDeclaration
Swift
public struct KeywordsOptions : Codable, Equatable
-
The important keywords in the content, organized by relevance.
See moreDeclaration
Swift
public struct KeywordsResult : Codable, Equatable
-
Custom models that are available for entities and relations.
See moreDeclaration
Swift
public struct ListModelsResults : Codable, Equatable
-
ListSentimentModelsResponse.
See moreDeclaration
Swift
public struct ListSentimentModelsResponse : Codable, Equatable
-
Model.
See moreDeclaration
Swift
public struct Model : Codable, Equatable
-
A list of messages describing model training issues when model status is
See moreerror
.Declaration
Swift
public struct Notice : Codable, Equatable
-
RelationArgument.
See moreDeclaration
Swift
public struct RelationArgument : Codable, Equatable
-
An entity that corresponds with an argument in a relation.
See moreDeclaration
Swift
public struct RelationEntity : Codable, Equatable
-
Recognizes when two entities are related and identifies the type of relation. For example, an
See moreawardedTo
relation might connect the entities “Nobel Prize” and “Albert Einstein”. For more information, see Relation types. Supported languages: Arabic, English, German, Japanese, Korean, Spanish. Chinese, Dutch, French, Italian, and Portuguese custom models are also supported.Declaration
Swift
public struct RelationsOptions : Codable, Equatable
-
The relations between entities found in the content.
See moreDeclaration
Swift
public struct RelationsResult : Codable, Equatable
-
SemanticRolesEntity.
See moreDeclaration
Swift
public struct SemanticRolesEntity : Codable, Equatable
-
SemanticRolesKeyword.
See moreDeclaration
Swift
public struct SemanticRolesKeyword : Codable, Equatable
-
Parses sentences into subject, action, and object form. Supported languages: English, German, Japanese, Korean, Spanish.
See moreDeclaration
Swift
public struct SemanticRolesOptions : Codable, Equatable
-
The object containing the actions and the objects the actions act upon.
See moreDeclaration
Swift
public struct SemanticRolesResult : Codable, Equatable
-
The extracted action from the sentence.
See moreDeclaration
Swift
public struct SemanticRolesResultAction : Codable, Equatable
-
The extracted object from the sentence.
See moreDeclaration
Swift
public struct SemanticRolesResultObject : Codable, Equatable
-
The extracted subject from the sentence.
See moreDeclaration
Swift
public struct SemanticRolesResultSubject : Codable, Equatable
-
SemanticRolesVerb.
See moreDeclaration
Swift
public struct SemanticRolesVerb : Codable, Equatable
-
SentenceResult.
See moreDeclaration
Swift
public struct SentenceResult : Codable, Equatable
-
SentimentModel.
See moreDeclaration
Swift
public struct SentimentModel : Codable, Equatable
-
Analyzes the general sentiment of your content or the sentiment toward specific target phrases. You can analyze sentiment for detected entities with
See moreentities.sentiment
and for keywords withkeywords.sentiment
. Supported languages: Arabic, English, French, German, Italian, Japanese, Korean, Portuguese, Russian, Spanish.Declaration
Swift
public struct SentimentOptions : Codable, Equatable
-
The sentiment of the content.
See moreDeclaration
Swift
public struct SentimentResult : Codable, Equatable
-
(Experimental) Returns a summary of content. Supported languages: English only.
See moreDeclaration
Swift
public struct SummarizationOptions : Codable, Equatable
-
Returns tokens and sentences from the input text.
See moreDeclaration
Swift
public struct SyntaxOptions : Codable, Equatable
-
Tokenization options.
See moreDeclaration
Swift
public struct SyntaxOptionsTokens : Codable, Equatable
-
Tokens and sentences returned from syntax analysis.
See moreDeclaration
Swift
public struct SyntaxResult : Codable, Equatable
-
Emotion results for a specified target.
See moreDeclaration
Swift
public struct TargetedEmotionResults : Codable, Equatable
-
TargetedSentimentResults.
See moreDeclaration
Swift
public struct TargetedSentimentResults : Codable, Equatable
-
TokenResult.
See moreDeclaration
Swift
public struct TokenResult : Codable, Equatable