Experimentation for harassment detection with Azure Cognitive Services
Set your Azure key and endpoint in appsettings.json.
{
"CognitiveOptions": {
"ApiKey": "...",
"ApiEndpoint": "..."
}
}Add sentences you want to evaluate in input.json.
{
"Values": [
"Sentence 1",
"Sentence 2",
"Sentence 3"
]
}Simply run the project and observe the console output. You should see each sentence being evaluated by Cognitive Services.
When the process finished, the file output.json containing detailed results is created in \bin\Debug\net6.0.