Skip to content

Commit

Permalink
Generated from 361edf6762bf638119ef9f9e6640cb91bfb8f941 (#1936)
Browse files Browse the repository at this point in the history
Classify changes Update
  • Loading branch information
AutorestCI committed Feb 28, 2018
1 parent f746c62 commit 0509d5f
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
from .tag import Tag
from .frame import Frame
from .frames import Frames
from .score import Score
from .classification_category1 import ClassificationCategory1
from .classification_category2 import ClassificationCategory2
from .classification_category3 import ClassificationCategory3
from .classification import Classification
from .status import Status
from .email import Email
Expand Down Expand Up @@ -76,7 +78,9 @@
'Tag',
'Frame',
'Frames',
'Score',
'ClassificationCategory1',
'ClassificationCategory2',
'ClassificationCategory3',
'Classification',
'Status',
'Email',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,29 @@
class Classification(Model):
"""The classification details of the text.
:param category1:
:param category1: The category1 score details of the text. <a
href="https://aka.ms/textClassifyCategories">Click here</a> for more
details on category classification.
:type category1:
~azure.cognitiveservices.vision.contentmoderator.models.Score
:param category2:
~azure.cognitiveservices.vision.contentmoderator.models.ClassificationCategory1
:param category2: The category2 score details of the text. <a
href="https://aka.ms/textClassifyCategories">Click here</a> for more
details on category classification.
:type category2:
~azure.cognitiveservices.vision.contentmoderator.models.Score
:param category3:
~azure.cognitiveservices.vision.contentmoderator.models.ClassificationCategory2
:param category3: The category3 score details of the text. <a
href="https://aka.ms/textClassifyCategories">Click here</a> for more
details on category classification.
:type category3:
~azure.cognitiveservices.vision.contentmoderator.models.Score
~azure.cognitiveservices.vision.contentmoderator.models.ClassificationCategory3
:param review_recommended: The review recommended flag.
:type review_recommended: bool
"""

_attribute_map = {
'category1': {'key': 'Category1', 'type': 'Score'},
'category2': {'key': 'Category2', 'type': 'Score'},
'category3': {'key': 'Category3', 'type': 'Score'},
'category1': {'key': 'Category1', 'type': 'ClassificationCategory1'},
'category2': {'key': 'Category2', 'type': 'ClassificationCategory2'},
'category3': {'key': 'Category3', 'type': 'ClassificationCategory3'},
'review_recommended': {'key': 'ReviewRecommended', 'type': 'bool'},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
from msrest.serialization import Model


class Score(Model):
"""The classification score details of the text. <a
class ClassificationCategory1(Model):
"""The category1 score details of the text. <a
href="https://aka.ms/textClassifyCategories">Click here</a> for more
details on category classification.
:param score: The category score.
:param score: The category1 score.
:type score: float
"""

Expand All @@ -26,5 +26,5 @@ class Score(Model):
}

def __init__(self, score=None):
super(Score, self).__init__()
super(ClassificationCategory1, self).__init__()
self.score = score
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
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

0 comments on commit 0509d5f

Please sign in to comment.