Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Draft] Controllable and Interactive Summarization #21787

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
23
  • Loading branch information
yuantao-wang committed Dec 7, 2022
commit 760366327a7e6fb1df24f61b0b04257b81476925
54 changes: 54 additions & 0 deletions dev/cognitiveservices/data-plane/Language/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -808,11 +808,65 @@
"format": "int32",
"description": "It controls the approximate number of sentences in the output summaries."
},
"phraseControls": {
"type": "array",
"description": "Control the phrases to be used in the summary.",
"items": {
"$ref": "#/definitions/PhraseControl"
}
},
"prefix": {
"type": "string",
"description": "The prefix comes before the inserted summary text."
},
"suffix": {
"type": "string",
"description": "The suffix comes after the inserted summary text."
},
"stringIndexType": {
"$ref": "#/definitions/StringIndexType"
}
}
},
"PhraseControl": {
"type": "object",
"description": "Control the phrases to be used in the summary.",
"required": [
"targetPhrase",
"strategy"
],
"properties": {
"targetPhrase": {
"type": "string",
"description": "The target phrase to control."
},
"strategy": {
"$ref": "#/definitions/PhraseControlStrategy"
}
}
},
"PhraseControlStrategy": {
"enum": [
"encourage",
"discourage"
],
"type": "string",
"description": "The strategy to use in phrase control.",
"x-ms-enum": {
"modelAsString": false,
"name": "PhraseControlStrategy",
"values": [
{
"value": "encourage",
"description": "The model will have higher probability to select the target phrase in the summary if there are multiple alternates."
},
{
"value": "discourage",
"description": "The model will have lower probability to select the target phrase in the summary if there are multiple alternates."
}
]
}
},
"SummaryContext": {
"type": "object",
"description": "The context of the summary.",
Expand Down