File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.2-beta Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 134
134
"azure-ai-formrecognizer" : [
135
135
"sample_manage_custom_models.py" ,
136
136
"sample_manage_custom_models_async.py" ,
137
- "sample_copy_model.py" ,
138
- "sample_copy_model_async.py" ,
139
137
],
140
138
"azure-ai-language-questionanswering" : ["sample_chat.py" ],
141
139
"azure-ai-textanalytics" : [
Original file line number Diff line number Diff line change @@ -56,11 +56,11 @@ def sample_copy_model_to(custom_model_id):
56
56
)
57
57
copied_over_model = poller .result ()
58
58
59
- print ("Model ID: {}" .format (model .model_id ))
60
- print ("Description: {}" .format (model .description ))
61
- print ("Model created on: {}\n " .format (model .created_on ))
59
+ print ("Model ID: {}" .format (copied_over_model .model_id ))
60
+ print ("Description: {}" .format (copied_over_model .description ))
61
+ print ("Model created on: {}\n " .format (copied_over_model .created_on ))
62
62
print ("Doc types the model can recognize:" )
63
- for name , doc_type in model .doc_types .items ():
63
+ for name , doc_type in copied_over_model .doc_types .items ():
64
64
print ("\n Doc Type: '{}' which has the following fields:" .format (name ))
65
65
for field_name , field in doc_type .field_schema .items ():
66
66
print ("Field: '{}' has type '{}' and confidence score {}" .format (
You can’t perform that action at this time.
0 commit comments