Documentation ¶
Index ¶
- type Adm
- type Affinity
- type Analysis
- type Category
- type Cluster
- type Complement
- type Concept
- type Continent
- type CorporateReputation
- type Country
- type DeepCategorization
- type DocumentStructure
- type EmailsInfo
- type Entity
- type GlobalSentiment
- type Irony
- type Language
- type LanguageIdentification
- type MoneyExpression
- type Offset
- type Organization
- type OtherExpression
- type Parser
- type PolarityTerm
- type Quotation
- type Relation
- type Response
- type ScoreTag
- type Segment
- type SegmentType
- type SemTheme
- type Sementity
- type Semgeo
- type Semref
- type Semtheme
- type Sense
- type SenseID
- type Sentence
- type Sentiment
- type SentimentAgreement
- type SentimentedConcept
- type SentimentedEntity
- type Standard
- type Status
- type StatusIntValues
- type Style
- type Subject
- type Subjectivity
- type Summarization
- type SyntacticTreeRelation
- type Term
- type TextClassification
- type TextClustering
- type TimeExpression
- type Token
- type TokenInheritedSentiment
- type TokenSelfSentiment
- type TokenSentiment
- type TopicsExtraction
- type Variant
- type Verb
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analysis ¶
type Analysis struct { Origin string `json:"origin"` VarietyDictionary string `json:"variety_dictionary"` Tag string `json:"tag"` Lemma string `json:"lemma"` OriginalForm string `json:"original_form"` TagInfo string `json:"tag_info"` VarietyDictionaryInfo string `json:"variety_dictionary_info"` CheckInfo string `json:"check_info"` Remission string `json:"remission"` SenseIDList []SenseID `json:"sense_id_list"` }
type Complement ¶
type Concept ¶
type Concept struct { Form string `json:"form"` OfficialForm string `json:"official_form"` Dictionary string `json:"dictionary"` ID string `json:"id"` Sementity Sementity `json:"sementity"` SemgeoList []Semgeo `json:"semgeo_list"` SemldList []string `json:"semld_list"` SemreferList []string `json:"semrefer_list"` SemthemeList []Semtheme `json:"semtheme_list"` StandardList []Standard `json:"standard_list"` VariantList []Variant `json:"variant_list"` Relevance string `json:"relevance"` SubentityList []string `json:"subentity_list"` }
type CorporateReputation ¶
type CorporateReputation struct { Status StatusIntValues `json:"status"` // Uh, this is not the standard status! Time float64 `json:"time"` DeepTime float64 `json:"deep_time"` EntityList []Entity `json:"entity_list"` }
func (*CorporateReputation) Decode ¶
func (c *CorporateReputation) Decode(body io.ReadCloser) error
type DeepCategorization ¶
type DeepCategorization struct { Response CategoryList []Category `json:"category_list,omitempty"` }
func (*DeepCategorization) Decode ¶
func (d *DeepCategorization) Decode(body io.ReadCloser) error
type DocumentStructure ¶
type DocumentStructure struct { Response Title string `json:"title"` HeadingList []string `json:"heading_list"` AbstractList []string `json:"abstract_list"` EmailsInfo EmailsInfo `json:"emails_info"` }
func (*DocumentStructure) Decode ¶
func (d *DocumentStructure) Decode(body io.ReadCloser) error
type EmailsInfo ¶
type Entity ¶
type Entity struct { Form string `json:"form"` OfficialForm string `json:"official_form"` Dictionary string `json:"dictionary"` ID string `json:"id"` Sementity Sementity `json:"sementity"` SemgeoList []Semgeo `json:"semgeo_list"` SemldList []string `json:"semld_list"` SemreferList []Semref `json:"semrefer_list"` SemthemeList []SemTheme `json:"semtheme_list"` StandardList []Standard `json:"standard_list"` VariantList []Variant `json:"variant_list"` Relevance string `json:"relevance"` SubentityList []Entity `json:"subentity_list"` }
type GlobalSentiment ¶
type Language ¶
type Language struct { Language string `json:"language"` Name string `json:"name"` Relevance float64 `json:"relevance"` ISO6391 string `json:"iso-639-1"` ISO6392 string `json:"iso-639-2"` ISO6393 string `json:"iso-639-3"` ISO6395 string `json:"iso-639-5"` DeepTime string `json:"deep_time"` Time string `json:"time"` }
type LanguageIdentification ¶
type LanguageIdentification struct { Status StatusIntValues `json:"status"` // Uh, this is not a standard status! LanguageList []Language `json:"language_list"` }
func (*LanguageIdentification) Decode ¶
func (l *LanguageIdentification) Decode(body io.ReadCloser) error
type MoneyExpression ¶
type Organization ¶
type OtherExpression ¶
type Parser ¶
type Parser struct { Response TokenList []Token `json:"token_list"` GlobalSentiment GlobalSentiment `json:"global_sentiment"` }
type PolarityTerm ¶
type PolarityTerm struct { Text string `json:"text"` Inip string `json:"inip"` Endp string `json:"endp"` TagStack string `json:"tag_stack"` Confidence string `json:"confidence"` ScoreTag ScoreTag `json:"score_tag"` SentimentedEntityList []SentimentedEntity `json:"sentimented_entity_list,omitempty"` SentimentedConceptList []SentimentedConcept `json:"sentimented_concept_list,omitempty"` }
type Segment ¶
type Segment struct { Text string `json:"text"` SegmentType SegmentType `json:"segment_type"` Inip string `json:"inip"` Endp string `json:"endp"` Confidence string `json:"confidence"` ScoreTag ScoreTag `json:"score_tag"` Agreement SentimentAgreement `json:"agreement"` PolarityTermList []PolarityTerm `json:"polarity_term_list,omitempty"` SegmentList []Segment `json:"segment_list,omitempty"` SentimentedConceptList []SentimentedConcept `json:"sentimented_concept_list,omitempty"` }
type SegmentType ¶
type SegmentType string
const ( SegmentTypeMain SegmentType = "main" SegmentTypeSecondary SegmentType = "secondary" )
type Semref ¶
type Semref struct { Organization Organization `json:"organization"` Affinity Affinity `json:"affinity"` }
type Sentence ¶
type Sentence struct { Text string `json:"text"` Inip string `json:"inip"` Endp string `json:"endp"` Bop string `json:"bop"` Confidence string `json:"confidence"` ScoreTag ScoreTag `json:"score_tag"` Agreement SentimentAgreement `json:"agreement"` SegmentList []Segment `json:"segment_list"` SentimentedEntityList []SentimentedEntity `json:"sentimented_entity_list"` SentimentedConceptList []SentimentedConcept `json:"sentimented_concept_list"` }
type Sentiment ¶
type Sentiment struct { Response Model string `json:"model"` ScoreTag ScoreTag `json:"score_tag"` Agreement SentimentAgreement `json:"agreement"` Subjectivity Subjectivity `json:"subjectivity"` Confidence string `json:"confidence"` Irony Irony `json:"irony"` SentenceList []Sentence `json:"sentence_list"` SentimentedEntityList []SentimentedEntity `json:"sentimented_entity_list"` SentimentedConceptList []SentimentedConcept `json:"sentimented_concept_list"` }
type SentimentAgreement ¶
type SentimentAgreement string
const ( Agreement SentimentAgreement = "AGREEMENT" Disagreement SentimentAgreement = "DISAGREEMENT" )
type SentimentedConcept ¶
type SentimentedEntity ¶
type Status ¶
type StatusIntValues ¶
type StatusIntValues struct { Code int `json:"code"` Msg string `json:"msg"` Credits int `json:"credits"` RemainingCredits int `json:"remaining_credits"` }
Uh!
func (*StatusIntValues) Error ¶
func (s *StatusIntValues) Error() error
func (*StatusIntValues) IsSuccess ¶
func (s *StatusIntValues) IsSuccess() bool
type Subjectivity ¶
type Subjectivity string
const ( SubjectivitySubjective Subjectivity = "SUBJECTIVE" SubjectivityObjective Subjectivity = "OBJECTIVE" )
type Summarization ¶
func (*Summarization) Decode ¶
func (s *Summarization) Decode(body io.ReadCloser) error
type SyntacticTreeRelation ¶
type TextClassification ¶
func (*TextClassification) Decode ¶
func (t *TextClassification) Decode(body io.ReadCloser) error
type TextClustering ¶
func (*TextClustering) Decode ¶
func (t *TextClustering) Decode(body io.ReadCloser) error
type TimeExpression ¶
type Token ¶
type Token struct { Type string `json:"type"` Form string `json:"form"` NormalizedForm string `json:"normalized_form"` ID string `json:"id"` Inip string `json:"inip"` Endp string `json:"endp"` Style Style `json:"style"` Separation string `json:"separation"` QuoteLevel string `json:"quote_level"` AffectedByNegotiation string `json:"affected_by_negotiation"` Head string `json:"head"` SyntacticTreeRelationList []SyntacticTreeRelation `json:"syntactic_tree_relation_list"` AnalysisList []Analysis `json:"analysis_list"` SenseList []Sense `json:"sense_list"` Sentiment TokenSentiment `json:"sentiment"` TopicList TopicsExtraction `json:"topic_list"` // Uh, this is not a list! TokenList []Token `json:"token_list"` }
type TokenInheritedSentiment ¶
type TokenSelfSentiment ¶
type TokenSentiment ¶
type TokenSentiment struct { SelfSentiment TokenSelfSentiment `json:"self_sentiment"` InheritedSentiment TokenInheritedSentiment `json:"inherited_sentiment"` }
type TopicsExtraction ¶
type TopicsExtraction struct { Response EntityList []Entity `json:"entity_list"` ConceptList []Concept `json:"concept_list"` TimeExpressionList []TimeExpression `json:"time_expression_list"` MoneyExpressionList []MoneyExpression `json:"money_expression_list"` // QuantityExpressionList []QuantityExpression `json:"quantity_expression_list"` beta -> disabled OtherExpressionList []OtherExpression `json:"other_expression_list"` QuotationList []Quotation `json:"quotation_list"` RelationList []Relation `json:"relation_list"` }
func (*TopicsExtraction) Decode ¶
func (t *TopicsExtraction) Decode(body io.ReadCloser) error
Click to show internal directories.
Click to hide internal directories.