Abstractive summary generation rewrites the entire document by building internal semantic representation, and then a summary is created using natural language processing.
Input Type Supported: Audio, Text
Model Dependency: Speech to Text, Speaker Separation, Extractive summary
abstractive_summary.enable
key is set to true
under the settings
objectTransaction ID
is returned in the JSON body once the processing job is launched successfully.
This Transaction ID
can be used to check the status of the job or fetch the results of the job once the metadata is computed{"status":true,"transaction_id":32dcef1a-5724-4df8-a4a5-fb43c047716b,"message": " Compute job for file-id: 32dcef1a-5724-4df8-a4a5-fb43c047716b launched successfully"}
Speech to Text
has to be enabled for Action Items
to be enabled){"status":false,"error":{"code":"MCST07","message":"DependencyError: emotion_analysis depends on speech_to_text"}}
curl --request POST 'https://api.marsview.ai/v1/conversation/compute' \--header 'appSecret: 32dcef1a-5724-4df8-a4a5-fb43c047716b' \--header 'appId: 1ZrKT0tTv7rVWX-qNAKLc' \--header 'Content-Type: application/json' \--data-raw '{"settings":{"speech_to_text":{"enable":true,"pii_detection":false,"custom_vocabulary":["Marsview" , "Pikachu"]},"speaker_separation":{"enable":true,"num_speakers":4},"extractive_summary":{"enable":true},"abstractive_summary":{"enable":true}}}'
Given below is a sample response JSON when the Status code is 200.
{"status":true,"transaction_id":32dcef1a-5724-4df8-a4a5-fb43c047716b,"message": " Compute job for file-id: 32dcef1a-5724-4df8-a4a5-fb43c047716b launched successfully"}
data
object returns the requested metadata if it is computed. The status
object shows the current state of the requested metadata. Status for each metadata field can take values "Queued"/"Processing"/"Completed
".
Shown below is a case where "abstractive summary" Job is in "Queued"
state and "Completed"
state. {"status":{"abstractive_summary":"Queued",}"data":{"abstractive_summary":{}}}
{"status":{"abstractive_summary":"Completed"}"data":{"abstractive_summary":{"text":"A watch is a portable timepiece intended to be carried or worn by a person. It is designed to keep a consistent movement despite the motions caused by the person's activities. A wristwatch is designed to be worn around the wrist, attached by a watch strap or other type of bracelet, including metal bands, leather straps or any other kind of bracelet. A pocket watch is designed for a person to carry in a pocket, often attached to a chain. The study of timekeeping is known as horology. Watches progressed in the 17th century from spring-powered clocks, which appeared as early as the 14th century. During most of its history the watch was a mechanical device, driven by clockwork, powered by winding a mainspring, and keeping time with an oscillating balance wheel.","confidence":0.82}}}
Fields | Description |
| Summarized paragraph generated from Marsview generated Transcript |
| Confidence of the Abstractive summary (Ranges from 0 to 1) |