Skip to content

Instantly share code, notes, and snippets.

@halfak
Created December 12, 2015 18:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halfak/0d89ff662f23e71445e4 to your computer and use it in GitHub Desktop.
Save halfak/0d89ff662f23e71445e4 to your computer and use it in GitHub Desktop.
$ python
Python 3.4.3 (default, Jul 28 2015, 18:20:59)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from revscoring.languages import portuguese
>>> from revscoring.datasources import revision
>>> from revscoring.dependencies import solve
>>> solve(portuguese.revision.badwords, cache={revision.text: "potential badword"})
0
>>> solve(portuguese.revision.badwords, cache={revision.text: "puta"})
1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment