Skip to content

Commit b4e0ac6

Browse files
authored
Merge pull request #97082 from LauraKellerGitHub/Fictitious
Phone numbers and address change Content Moderator
2 parents fdd4689 + 994c7f6 commit b4e0ac6

File tree

4 files changed

+19
-21
lines changed

4 files changed

+19
-21
lines changed

articles/cognitive-services/Content-Moderator/dotnet-sdk-quickstart.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ The following code uses a Content Moderator client to analyze a body of text and
123123
Then at the root of your project and add a *TextFile.txt* file. Add your own text to this file, or use the following sample text:
124124

125125
```
126-
Is this a grabage email [email protected], phone: 6657789887, IP: 255.255.255.255, 1 Microsoft Way, Redmond, WA 98052.
127-
Crap is the profanity here. Is this information PII? phone 3144444444
126+
Is this a grabage email [email protected], phone: 4255550111, IP: 255.255.255.255, 1234 Main Boulevard, Panapolis WA 96555.
127+
Crap is the profanity here. Is this information PII? phone 4255550111
128128
```
129129

130130
Add the following method call to your `Main` method:

articles/cognitive-services/Content-Moderator/python-sdk-quickstart.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ Instantiate a client with your endpoint and key. Create a [CognitiveServicesCred
9999
The following code uses a Content Moderator client to analyze a body of text and print the results to the console. First, create a **text_files/** folder at the root of your project and add a *content_moderator_text_moderation.txt* file. Add your own text to this file, or use the following sample text:
100100

101101
```
102-
Is this a grabage email [email protected], phone: 6657789887, IP: 255.255.255.255, 1 Microsoft Way, Redmond, WA 98052.
103-
Crap is the profanity here. Is this information PII? phone 3144444444
102+
Is this a grabage email [email protected], phone: 4255550111, IP: 255.255.255.255, 1234 Main Boulevard, Panapolis WA 96555.
103+
Crap is the profanity here. Is this information PII? phone 2065550111
104104
```
105105

106106
Add a reference to the new folder.

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,33 +106,33 @@ The following example shows a sample response:
106106
"Phone":[
107107
{
108108
"CountryCode":"US",
109-
"Text":"6657789887",
109+
"Text":"4255550111",
110110
"Index":56
111111
},
112112
{
113113
"CountryCode":"US",
114-
"Text":"870 608 4000",
114+
"Text":"425 555 0111",
115115
"Index":212
116116
},
117117
{
118118
"CountryCode":"UK",
119-
"Text":"+44 870 608 4000",
119+
"Text":"+123 456 7890",
120120
"Index":208
121121
},
122122
{
123123
"CountryCode":"UK",
124-
"Text":"0344 800 2400",
124+
"Text":"0234 567 8901",
125125
"Index":228
126126
},
127127
{
128128
"CountryCode":"UK",
129-
"Text":"0800 820 3300",
129+
"Text":"0456 789 0123",
130130
"Index":245
131131
}
132132
],
133133
"Address":[
134134
{
135-
"Text":"1 Microsoft Way, Redmond, WA 98052",
135+
"Text":"1234 Main Boulevard, Panapolis WA 96555",
136136
"Index":89
137137
}
138138
],

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

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ For **Content-Type**, select the type of content you want to screen. For this ex
5959
In the **Request body** box, enter some text. The following example shows an intentional typo in the text.
6060

6161
```
62-
Is this a grabage or crap email [email protected], phone: 6657789887, IP: 255.255.255.255, 1 Microsoft Way, Redmond, WA 98052.
63-
These are all UK phone numbers, the last two being Microsoft UK support numbers: +44 870 608 4000 or 0344 800 2400 or 0800 820 3300.
64-
Also, 999-99-9999 looks like a social security number (SSN).
62+
Is this a grabage or crap email [email protected], phone: 4255550111, IP: 255.255.255.255, 1234 Main Boulevard, Panapolis WA 96555. These are all UK phone numbers, the last two being Microsoft UK support numbers: +44 870 608 4000 or 0344 800 2400 or 0800 820 3300. Also, 999-99-9999 looks like a social security number (SSN).
6563
```
6664

6765
## Analyze the response
@@ -72,8 +70,8 @@ The following response shows the various insights from the API. It contains pote
7270
> The machine-assisted 'Classification' feature is in preview and supports English only.
7371
7472
```json
75-
{"OriginalText":"Is this a grabage or crap email [email protected], phone: 6657789887, IP: 255.255.255.255, 1 Microsoft Way, Redmond, WA 98052.\r\nThese are all UK phone numbers, the last two being Microsoft UK support numbers: +44 870 608 4000 or 0344 800 2400 or 0800 820 3300.\r\nAlso, 544-56-7788 looks like a social security number (SSN).",
76-
"NormalizedText":"Is this a grabage or crap email abcdef@ abcd. com, phone: 6657789887, IP: 255. 255. 255. 255, 1 Microsoft Way, Redmond, WA 98052. \r\nThese are all UK phone numbers, the last two being Microsoft UK support numbers: +44 870 608 4000 or 0344 800 2400 or 0800 820 3300. \r\nAlso, 544- 56- 7788 looks like a social security number ( SSN) .",
73+
{"OriginalText":"Is this a grabage or crap email [email protected], phone: 4255550111, IP: 255.255.255.255, 1234 Main Boulevard, Panapolis WA 96555.\r\nThese are all UK phone numbers: +44 123 456 7890 or 0234 567 8901 or 0456 789 0123.\r\nAlso, 999-99-9999 looks like a social security number (SSN).",
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. \r\nThese are all UK phone numbers: +44 123 456 7890 or 0234 567 8901 or 0456 789 0123. \r\nAlso, 999- 99- 9999 looks like a social security number ( SSN) .",
7775
"Misrepresentation":null,
7876
"PII":{
7977
"Email":[
@@ -94,33 +92,33 @@ The following response shows the various insights from the API. It contains pote
9492
"Phone":[
9593
{
9694
"CountryCode":"US",
97-
"Text":"6657789887",
95+
"Text":"4255550111",
9896
"Index":56
9997
},
10098
{
10199
"CountryCode":"US",
102-
"Text":"870 608 4000",
100+
"Text":"425 555 0111",
103101
"Index":211
104102
},
105103
{
106104
"CountryCode":"UK",
107-
"Text":"+44 870 608 4000",
105+
"Text":"+44 123 456 7890",
108106
"Index":207
109107
},
110108
{
111109
"CountryCode":"UK",
112-
"Text":"0344 800 2400",
110+
"Text":"0234 567 8901",
113111
"Index":227
114112
},
115113
{
116114
"CountryCode":"UK",
117-
"Text":"0800 820 3300",
115+
"Text":"0456 789 0123",
118116
"Index":244
119117
}
120118
],
121119
"Address":[
122120
{
123-
"Text":"1 Microsoft Way, Redmond, WA 98052",
121+
"Text":"1234 Main Boulevard, Panapolis WA 96555",
124122
"Index":89
125123
}
126124
],

0 commit comments

Comments
 (0)