-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 361edf6762bf638119ef9f9e6640cb91bfb8f941 (#1936)
Classify changes Update
- Loading branch information
1 parent
f746c62
commit 0509d5f
Showing
5 changed files
with
85 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...erator/azure/cognitiveservices/vision/contentmoderator/models/classification_category2.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class ClassificationCategory2(Model): | ||
"""The category2 score details of the text. <a | ||
href="https://aka.ms/textClassifyCategories">Click here</a> for more | ||
details on category classification. | ||
:param score: The category2 score. | ||
:type score: float | ||
""" | ||
|
||
_attribute_map = { | ||
'score': {'key': 'Score', 'type': 'float'}, | ||
} | ||
|
||
def __init__(self, score=None): | ||
super(ClassificationCategory2, self).__init__() | ||
self.score = score |
30 changes: 30 additions & 0 deletions
30
...erator/azure/cognitiveservices/vision/contentmoderator/models/classification_category3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class ClassificationCategory3(Model): | ||
"""The category3 score details of the text. <a | ||
href="https://aka.ms/textClassifyCategories">Click here</a> for more | ||
details on category classification. | ||
:param score: The category3 score. | ||
:type score: float | ||
""" | ||
|
||
_attribute_map = { | ||
'score': {'key': 'Score', 'type': 'float'}, | ||
} | ||
|
||
def __init__(self, score=None): | ||
super(ClassificationCategory3, self).__init__() | ||
self.score = score |