We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I tried to call analyze() with an AnalyzeComment object instead of the variant analyze(text, { options }).
The request looked like this:
analyze({ comment: { text }, languages: ['en'], requestedAttributes: { 'TOXICITY': { scoreThreshold: 0.6 }, 'IDENTITY_ATTACK': { scoreThreshold: 0.6 }, 'INSULT': { scoreThreshold: 0.7 } } });
Here I don't get a complete response from the API:
What I get as a response is the following:
{ languages: [ 'en' ], detectedLanguages: [ 'ro', 'en' ] }
The attributeScores are missing here. What am I doing wrong?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I tried to call analyze() with an AnalyzeComment object instead of the variant analyze(text, { options }).
The request looked like this:
analyze({ comment: { text }, languages: ['en'], requestedAttributes: { 'TOXICITY': { scoreThreshold: 0.6 }, 'IDENTITY_ATTACK': { scoreThreshold: 0.6 }, 'INSULT': { scoreThreshold: 0.7 } } });
Here I don't get a complete response from the API:
What I get as a response is the following:
{ languages: [ 'en' ], detectedLanguages: [ 'ro', 'en' ] }
The attributeScores are missing here. What am I doing wrong?
The text was updated successfully, but these errors were encountered: