Skip to content

Commit 2e59ee6

Browse files
committed
replace example outputs to reflect new sample text
1 parent 9077b3e commit 2e59ee6

File tree

2 files changed

+79
-95
lines changed

2 files changed

+79
-95
lines changed

articles/cognitive-services/Content-Moderator/text-moderation-api.md

Lines changed: 28 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -85,39 +85,37 @@ The personal data feature detects the potential presence of this information:
8585
The following example shows a sample response:
8686

8787
```json
88-
"PII":{
89-
"Email":[
90-
{
91-
"Detected":"[email protected]",
92-
"SubType":"Regular",
93-
94-
"Index":32
95-
}
88+
"pii":{
89+
"email":[
90+
{
91+
"detected":"[email protected]",
92+
"sub_type":"Regular",
93+
94+
"index":32
95+
}
9696
],
97-
"IPA":[
98-
{
99-
"SubType":"IPV4",
100-
"Text":"255.255.255.255",
101-
"Index":72
102-
}
97+
"ssn":[
98+
10399
],
104-
"Phone":[
105-
{
106-
"CountryCode":"US",
107-
"Text":"4255550111",
108-
"Index":56
109-
},
110-
{
111-
"CountryCode":"US",
112-
"Text":"425 555 0111",
113-
"Index":212
114-
}
100+
"ipa":[
101+
{
102+
"sub_type":"IPV4",
103+
"text":"255.255.255.255",
104+
"index":72
105+
}
115106
],
116-
"Address":[
117-
{
118-
"Text":"1234 Main Boulevard, Panapolis WA 96555",
119-
"Index":89
120-
}
107+
"phone":[
108+
{
109+
"country_code":"US",
110+
"text":"6657789887",
111+
"index":56
112+
}
113+
],
114+
"address":[
115+
{
116+
"text":"1 Microsoft Way, Redmond, WA 98052",
117+
"index":89
118+
}
121119
]
122120
}
123121
```

articles/cognitive-services/Content-Moderator/try-text-api.md

Lines changed: 51 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -70,71 +70,57 @@ The following response shows the various insights from the API. It contains pote
7070
> The machine-assisted 'Classification' feature is in preview and supports English only.
7171
7272
```json
73-
{"OriginalText":"Is this a grabage or crap email [email protected], phone: 4255550111, IP: 255.255.255.255, 1234 Main Boulevard, Panapolis WA 96555.",
74-
"NormalizedText":"Is this a grabage or crap email abcdef@ abcd. com, phone: 4255550111, IP: 255. 255. 255. 255, 1234 Main Boulevard, Panapolis WA 96555.",
75-
"Misrepresentation":null,
76-
"PII":{
77-
"Email":[
78-
{
79-
"Detected":"[email protected]",
80-
"SubType":"Regular",
81-
82-
"Index":32
83-
}
84-
],
85-
"IPA":[
86-
{
87-
"SubType":"IPV4",
88-
"Text":"255.255.255.255",
89-
"Index":72
90-
}
91-
],
92-
"Phone":[
93-
{
94-
"CountryCode":"US",
95-
"Text":"4255550111",
96-
"Index":56
97-
},
98-
{
99-
"CountryCode":"US",
100-
"Text":"425 555 0111",
101-
"Index":211
102-
}
103-
],
104-
"Address":[
105-
{
106-
"Text":"1234 Main Boulevard, Panapolis WA 96555",
107-
"Index":89
108-
}
109-
]
110-
},
111-
"Classification":{
112-
"ReviewRecommended":true,
113-
"Category1":{
114-
"Score":1.5113095059859916E-06
115-
},
116-
"Category2":{
117-
"Score":0.12747249007225037
118-
},
119-
"Category3":{
120-
"Score":0.98799997568130493
121-
}
122-
},
123-
"Language":"eng",
124-
"Terms":[
125-
{
126-
"Index":21,
127-
"OriginalIndex":21,
128-
"ListId":0,
129-
"Term":"crap"
130-
}
131-
],
132-
"Status":{
133-
"Code":3000,
134-
"Description":"OK",
135-
"Exception":null
136-
},
137-
"TrackingId":"2eaa012f-1604-4e36-a8d7-cc34b14ebcb4"
73+
{
74+
"original_text":"Is this a grabage or crap email [email protected], phone: 6657789887, IP: 255.255.255.255, 1 Microsoft Way, Redmond, WA 98052.",
75+
"normalized_text":" grabage crap email [email protected], phone: 6657789887, IP: 255.255.255.255, 1 Microsoft Way, Redmond, WA 98052.",
76+
"auto_corrected_text":"Is this a garbage or crap email [email protected], phone: 6657789887, IP: 255.255.255.255, 1 Microsoft Way, Redmond, WA 98052.",
77+
"status":{
78+
"code":3000,
79+
"description":"OK"
80+
},
81+
"pii":{
82+
"email":[
83+
{
84+
"detected":"[email protected]",
85+
"sub_type":"Regular",
86+
87+
"index":32
88+
}
89+
],
90+
"ssn":[
91+
92+
],
93+
"ipa":[
94+
{
95+
"sub_type":"IPV4",
96+
"text":"255.255.255.255",
97+
"index":72
98+
}
99+
],
100+
"phone":[
101+
{
102+
"country_code":"US",
103+
"text":"6657789887",
104+
"index":56
105+
}
106+
],
107+
"address":[
108+
{
109+
"text":"1 Microsoft Way, Redmond, WA 98052",
110+
"index":89
111+
}
112+
]
113+
},
114+
"language":"eng",
115+
"terms":[
116+
{
117+
"index":12,
118+
"original_index":21,
119+
"list_id":0,
120+
"term":"crap"
121+
}
122+
],
123+
"tracking_id":"WU_ibiza_65a1016d-0f67-45d2-b838-b8f373d6d52e_ContentModerator.F0_fe000d38-8ecd-47b5-a8b0-4764df00e3b5"
138124
}
139125
```
140126

0 commit comments

Comments
 (0)