@@ -30,10 +30,10 @@ def test_repr(self):
30
30
detected_language = _models .DetectedLanguage (name = "English" , iso6391_name = "en" , score = 1.0 )
31
31
32
32
categorized_entity = _models .CategorizedEntity (text = "Bill Gates" , category = "Person" , subcategory = "Age" ,
33
- grapheme_offset = 0 , grapheme_length = 8 , score = 0.899 )
33
+ grapheme_offset = 0 , grapheme_length = 8 , confidence_score = 0.899 )
34
34
35
35
pii_entity = _models .PiiEntity (text = "555-55-5555" , category = "SSN" , subcategory = None , grapheme_offset = 0 ,
36
- grapheme_length = 8 , score = 0.899 )
36
+ grapheme_length = 8 , confidence_score = 0.899 )
37
37
38
38
text_document_statistics = _models .TextDocumentStatistics (grapheme_count = 14 , transaction_count = 18 )
39
39
@@ -69,7 +69,7 @@ def test_repr(self):
69
69
id = "1" , key_phrases = ["dog" , "cat" , "bird" ], statistics = text_document_statistics , is_error = False
70
70
)
71
71
72
- linked_entity_match = _models .LinkedEntityMatch (score = 0.999 , text = "Bill Gates" , grapheme_offset = 0 ,
72
+ linked_entity_match = _models .LinkedEntityMatch (confidence_score = 0.999 , text = "Bill Gates" , grapheme_offset = 0 ,
73
73
grapheme_length = 8 )
74
74
75
75
linked_entity = _models .LinkedEntity (
@@ -120,18 +120,18 @@ def test_repr(self):
120
120
121
121
self .assertEqual ("DetectedLanguage(name=English, iso6391_name=en, score=1.0)" , repr (detected_language ))
122
122
self .assertEqual ("CategorizedEntity(text=Bill Gates, category=Person, subcategory=Age, grapheme_offset=0, "
123
- "grapheme_length=8, score =0.899)" ,
123
+ "grapheme_length=8, confidence_score =0.899)" ,
124
124
repr (categorized_entity ))
125
125
self .assertEqual ("PiiEntity(text=555-55-5555, category=SSN, subcategory=None, grapheme_offset=0, "
126
- "grapheme_length=8, score =0.899)" , repr (pii_entity ))
126
+ "grapheme_length=8, confidence_score =0.899)" , repr (pii_entity ))
127
127
self .assertEqual ("TextDocumentStatistics(grapheme_count=14, transaction_count=18)" ,
128
128
repr (text_document_statistics ))
129
129
self .assertEqual ("RecognizeEntitiesResult(id=1, entities=[CategorizedEntity(text=Bill Gates, category=Person, "
130
- "subcategory=Age, grapheme_offset=0, grapheme_length=8, score =0.899)], "
130
+ "subcategory=Age, grapheme_offset=0, grapheme_length=8, confidence_score =0.899)], "
131
131
"statistics=TextDocumentStatistics(grapheme_count=14, transaction_count=18), "
132
132
"is_error=False)" , repr (recognize_entities_result ))
133
133
self .assertEqual ("RecognizePiiEntitiesResult(id=1, entities=[PiiEntity(text=555-55-5555, category=SSN, "
134
- "subcategory=None, grapheme_offset=0, grapheme_length=8, score =0.899)], "
134
+ "subcategory=None, grapheme_offset=0, grapheme_length=8, confidence_score =0.899)], "
135
135
"statistics=TextDocumentStatistics(grapheme_count=14, transaction_count=18), "
136
136
"is_error=False)" , repr (recognize_pii_entities_result ))
137
137
self .assertEqual ("DetectLanguageResult(id=1, primary_language=DetectedLanguage(name=English, "
@@ -142,15 +142,15 @@ def test_repr(self):
142
142
self .assertEqual ("ExtractKeyPhrasesResult(id=1, key_phrases=['dog', 'cat', 'bird'], statistics="
143
143
"TextDocumentStatistics(grapheme_count=14, transaction_count=18), is_error=False)" ,
144
144
repr (extract_key_phrases_result ))
145
- self .assertEqual ("LinkedEntityMatch(score =0.999, text=Bill Gates, grapheme_offset=0, grapheme_length=8)" ,
145
+ self .assertEqual ("LinkedEntityMatch(confidence_score =0.999, text=Bill Gates, grapheme_offset=0, grapheme_length=8)" ,
146
146
repr (linked_entity_match ))
147
- self .assertEqual ("LinkedEntity(name=Bill Gates, matches=[LinkedEntityMatch(score =0.999, text=Bill Gates, "
148
- "grapheme_offset=0, grapheme_length=8), LinkedEntityMatch(score =0.999, text=Bill Gates, "
147
+ self .assertEqual ("LinkedEntity(name=Bill Gates, matches=[LinkedEntityMatch(confidence_score =0.999, text=Bill Gates, "
148
+ "grapheme_offset=0, grapheme_length=8), LinkedEntityMatch(confidence_score =0.999, text=Bill Gates, "
149
149
"grapheme_offset=0, grapheme_length=8)], language=English, data_source_entity_id=Bill Gates, "
150
150
"url=https://en.wikipedia.org/wiki/Bill_Gates, data_source=wikipedia)" , repr (linked_entity ))
151
151
self .assertEqual ("RecognizeLinkedEntitiesResult(id=1, entities=[LinkedEntity(name=Bill Gates, "
152
- "matches=[LinkedEntityMatch(score =0.999, text=Bill Gates, grapheme_offset=0, "
153
- "grapheme_length=8), LinkedEntityMatch(score =0.999, text=Bill Gates, grapheme_offset=0, "
152
+ "matches=[LinkedEntityMatch(confidence_score =0.999, text=Bill Gates, grapheme_offset=0, "
153
+ "grapheme_length=8), LinkedEntityMatch(confidence_score =0.999, text=Bill Gates, grapheme_offset=0, "
154
154
"grapheme_length=8)], language=English, data_source_entity_id=Bill Gates, "
155
155
"url=https://en.wikipedia.org/wiki/Bill_Gates, data_source=wikipedia)], "
156
156
"statistics=TextDocumentStatistics(grapheme_count=14, "
0 commit comments