Created
December 12, 2015 18:39
-
-
Save halfak/0d89ff662f23e71445e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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