@@ -132,6 +132,9 @@ class Point(namedtuple("Point", "x y")):
132
132
133
133
:ivar float x: x-coordinate
134
134
:ivar float y: y-coordinate
135
+
136
+ .. versionadded:: v2.1
137
+ Support for *to_dict* and *from_dict* methods
135
138
"""
136
139
137
140
__slots__ = ()
@@ -165,6 +168,9 @@ class FormPageRange(namedtuple("FormPageRange", "first_page_number last_page_num
165
168
166
169
:ivar int first_page_number: The first page number of the form.
167
170
:ivar int last_page_number: The last page number of the form.
171
+
172
+ .. versionadded:: v2.1
173
+ Support for *to_dict* and *from_dict* methods
168
174
"""
169
175
170
176
__slots__ = ()
@@ -216,6 +222,9 @@ class FormElement(object):
216
222
The kind of form element. Possible kinds are "word", "line", or "selectionMark" which
217
223
correspond to a :class:`~azure.ai.formrecognizer.FormWord` :class:`~azure.ai.formrecognizer.FormLine`,
218
224
or :class:`~azure.ai.formrecognizer.FormSelectionMark`, respectively.
225
+
226
+ .. versionadded:: v2.1
227
+ Support for *to_dict* and *from_dict* methods
219
228
"""
220
229
221
230
def __init__ (self , ** kwargs ):
@@ -283,7 +292,8 @@ class RecognizedForm(object):
283
292
words, selection marks, tables and page metadata.
284
293
285
294
.. versionadded:: v2.1
286
- The *form_type_confidence* and *model_id* properties
295
+ The *form_type_confidence* and *model_id* properties, support for
296
+ *to_dict* and *from_dict* methods
287
297
"""
288
298
289
299
def __init__ (self , ** kwargs ):
@@ -371,6 +381,9 @@ class FormField(object):
371
381
dict[str, :class:`~azure.ai.formrecognizer.FormField`], or list[:class:`~azure.ai.formrecognizer.FormField`]
372
382
:ivar float confidence:
373
383
Measures the degree of certainty of the recognition result. Value is between [0.0, 1.0].
384
+
385
+ .. versionadded:: v2.1
386
+ Support for *to_dict* and *from_dict* methods
374
387
"""
375
388
376
389
def __init__ (self , ** kwargs ):
@@ -490,7 +503,8 @@ class FieldData(object):
490
503
~azure.ai.formrecognizer.FormLine, ~azure.ai.formrecognizer.FormSelectionMark]]
491
504
492
505
.. versionadded:: v2.1
493
- *FormSelectionMark* is added to the types returned in the list of field_elements
506
+ *FormSelectionMark* is added to the types returned in the list of field_elements, support for
507
+ *to_dict* and *from_dict* methods
494
508
"""
495
509
496
510
def __init__ (self , ** kwargs ):
@@ -611,7 +625,7 @@ class FormPage(object):
611
625
:vartype selection_marks: list[~azure.ai.formrecognizer.FormSelectionMark]
612
626
613
627
.. versionadded:: v2.1
614
- *selection_marks* property
628
+ *selection_marks* property, support for *to_dict* and *from_dict* methods
615
629
"""
616
630
617
631
def __init__ (self , ** kwargs ):
@@ -704,7 +718,7 @@ class FormLine(FormElement):
704
718
:vartype appearance: ~azure.ai.formrecognizer.Appearance
705
719
706
720
.. versionadded:: v2.1
707
- *appearance* property
721
+ *appearance* property, support for *to_dict* and *from_dict* methods
708
722
"""
709
723
710
724
def __init__ (self , ** kwargs ):
@@ -795,6 +809,9 @@ class FormWord(FormElement):
795
809
:ivar int page_number:
796
810
The 1-based number of the page in which this content is present.
797
811
:ivar str kind: For FormWord, this is "word".
812
+
813
+ .. versionadded:: v2.1
814
+ Support for *to_dict* and *from_dict* methods
798
815
"""
799
816
800
817
def __init__ (self , ** kwargs ):
@@ -867,6 +884,9 @@ class FormSelectionMark(FormElement):
867
884
:ivar int page_number:
868
885
The 1-based number of the page in which this content is present.
869
886
:ivar str kind: For FormSelectionMark, this is "selectionMark".
887
+
888
+ .. versionadded:: v2.1
889
+ Support for *to_dict* and *from_dict* methods
870
890
"""
871
891
872
892
def __init__ (self , ** kwargs ):
@@ -944,7 +964,7 @@ class FormTable(object):
944
964
Units are in pixels for images and inches for PDF.
945
965
946
966
.. versionadded:: v2.1
947
- The *bounding_box* property.
967
+ The *bounding_box* property, support for *to_dict* and *from_dict* methods
948
968
"""
949
969
950
970
def __init__ (self , ** kwargs ):
@@ -1030,7 +1050,8 @@ class FormTableCell(object): # pylint:disable=too-many-instance-attributes
1030
1050
~azure.ai.formrecognizer.FormLine, ~azure.ai.formrecognizer.FormSelectionMark]]
1031
1051
1032
1052
.. versionadded:: v2.1
1033
- *FormSelectionMark* is added to the types returned in the list of field_elements
1053
+ *FormSelectionMark* is added to the types returned in the list of field_elements, support for
1054
+ *to_dict* and *from_dict* methods
1034
1055
"""
1035
1056
1036
1057
def __init__ (self , ** kwargs ):
@@ -1169,7 +1190,7 @@ class CustomFormModel(object):
1169
1190
:vartype properties: ~azure.ai.formrecognizer.CustomFormModelProperties
1170
1191
1171
1192
.. versionadded:: v2.1
1172
- The *model_name* and *properties* properties.
1193
+ The *model_name* and *properties* properties, support for *to_dict* and *from_dict* methods
1173
1194
"""
1174
1195
1175
1196
def __init__ (self , ** kwargs ):
@@ -1311,7 +1332,7 @@ class CustomFormSubmodel(object):
1311
1332
:ivar str form_type: Type of form this submodel recognizes.
1312
1333
1313
1334
.. versionadded:: v2.1
1314
- The *model_id* property
1335
+ The *model_id* property, support for *to_dict* and *from_dict* methods
1315
1336
"""
1316
1337
1317
1338
def __init__ (self , ** kwargs ):
@@ -1428,6 +1449,9 @@ class CustomFormModelField(object):
1428
1449
:ivar str label: The form fields label on the form.
1429
1450
:ivar str name: Canonical name; uniquely identifies a field within the form.
1430
1451
:ivar float accuracy: The estimated recognition accuracy for this field.
1452
+
1453
+ .. versionadded:: v2.1
1454
+ Support for *to_dict* and *from_dict* methods
1431
1455
"""
1432
1456
1433
1457
def __init__ (self , ** kwargs ):
@@ -1501,7 +1525,7 @@ class TrainingDocumentInfo(object):
1501
1525
The model ID that used the document to train.
1502
1526
1503
1527
.. versionadded:: v2.1
1504
- The *model_id* property
1528
+ The *model_id* property, support for *to_dict* and *from_dict* methods
1505
1529
"""
1506
1530
1507
1531
def __init__ (self , ** kwargs ):
@@ -1593,6 +1617,9 @@ class FormRecognizerError(object):
1593
1617
1594
1618
:ivar str code: Error code.
1595
1619
:ivar str message: Error message.
1620
+
1621
+ .. versionadded:: v2.1
1622
+ Support for *to_dict* and *from_dict* methods
1596
1623
"""
1597
1624
1598
1625
def __init__ (self , ** kwargs ):
@@ -1656,7 +1683,7 @@ class CustomFormModelInfo(object):
1656
1683
:vartype properties: ~azure.ai.formrecognizer.CustomFormModelProperties
1657
1684
1658
1685
.. versionadded:: v2.1
1659
- The *model_name* and *properties* properties
1686
+ The *model_name* and *properties* properties, support for *to_dict* and *from_dict* methods
1660
1687
"""
1661
1688
1662
1689
def __init__ (self , ** kwargs ):
@@ -1745,6 +1772,9 @@ class AccountProperties(object):
1745
1772
1746
1773
:ivar int custom_model_count: Current count of trained custom models.
1747
1774
:ivar int custom_model_limit: Max number of models that can be trained for this account.
1775
+
1776
+ .. versionadded:: v2.1
1777
+ Support for *to_dict* and *from_dict* methods
1748
1778
"""
1749
1779
1750
1780
def __init__ (self , ** kwargs ):
@@ -1794,6 +1824,9 @@ class CustomFormModelProperties(object):
1794
1824
"""Optional model properties.
1795
1825
1796
1826
:ivar bool is_composed_model: Is this model composed? (default: false).
1827
+
1828
+ .. versionadded:: v2.1
1829
+ Support for *to_dict* and *from_dict* methods
1797
1830
"""
1798
1831
1799
1832
def __init__ (self , ** kwargs ):
@@ -1841,6 +1874,9 @@ class TextAppearance(object):
1841
1874
:ivar str style_name: The text line style name.
1842
1875
Possible values include: "other", "handwriting".
1843
1876
:ivar float style_confidence: The confidence of text line style.
1877
+
1878
+ .. versionadded:: v2.1
1879
+ Support for *to_dict* and *from_dict* methods
1844
1880
"""
1845
1881
1846
1882
def __init__ (self , ** kwargs ):
0 commit comments