action symanto_topic_sentiment { label: "Extracts topics and sentiments and relates them." provider: symanto method: POST path: "/topic-sentiment" encoding: json input: { type: "object" properties: { domain: { type: "string" enum: ["Ecom", "Employee", "Hotel", "Restaurant"] } } additionalProperties: false } output: { type: "array" items: { type: "object" properties: { id: { type: "string" } language: { type: "string" } sentiments: { type: "array" items: { type: "object" properties: { category: { type: "string" } end: { type: "integer" format: "int32" } negationTerm: { type: "string" } parentCategory: { type: "string" } positive: { type: "boolean" } scale: { type: "number" format: "double" } start: { type: "integer" format: "int32" } text: { type: "string" } } } } text: { type: "string" } topicSentiments: { type: "array" items: { type: "object" properties: { sentence: { type: "string" } sentiment: { type: "object" additionalProperties: true } topic: { type: "object" properties: { category: { type: "string" } end: { type: "integer" format: "int32" } polarity: { type: "number" format: "double" } start: { type: "integer" format: "int32" } text: { type: "string" } topic: { type: "string" } } } } } } topics: { type: "array" items: { type: "object" additionalProperties: true } } } } } }