Skip to content

Liryax/perspective

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

perspective

perspective is an API wrapper for Google's Perspective API

documentation

Some documentation is available on readthedocs.

Installation

To install, use pip install perspective

Usage

A simple example:

from perspective import Perspective
p = Perspective("API_KEY")
comment = p.score("This is a comment", tests=["TOXICITY"])
print("Toxicity score: " + comment["TOXICITY"].score)

About

An API wrapper for Google's Perspective API

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages

  • Python 100.0%