Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D DeepPavlov
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 18
    • Issues 18
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • DeepPavlov
  • DeepPavlov
  • Merge requests
  • !879

ru_obscenity_classifier model have been created

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Andrei Glinskii requested to merge github/fork/SultanovAR/ru_obscenity_classifier into dev Jun 13, 2019
  • Overview 14
  • Commits 8
  • Pipelines 0
  • Changes 4

Created by: SultanovAR

ru_obscenity_classifier it is model that classifies text for obscenity, for russian language Code is placed in deeppavlov/models/classifiers/ru_obscenity_classifier.py Config is placed in deeppavlov/configs/classifiers/ru_obscenity_classifier.json

example of working:

python deep.py interact -d configs/classifiers/ru_obscenity_classifier.json
2019-06-13 19:12:23.45 INFO in 'deeppavlov.core.data.utils'['utils'] at line 63: Downloading from http://files.deeppavlov.ai/models/obscenity_classifier/ru_obscenity_dataset.zip?config=ru_obscenity_classifier to /home/azat/.deeppavlov/downloads/ru_obscenity_dataset.zip
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 17.7k/17.7k [00:00<00:00, 32.2MB/s]
2019-06-13 19:12:23.49 INFO in 'deeppavlov.core.data.utils'['utils'] at line 201: Extracting /home/azat/.deeppavlov/downloads/ru_obscenity_dataset.zip archive into /home/azat/.deeppavlov/downloads/obscenity_dataset
[nltk_data] Downloading package punkt to /home/azat/nltk_data...
[nltk_data]   Package punkt is already up-to-date!
[nltk_data] Downloading package stopwords to /home/azat/nltk_data...
[nltk_data]   Package stopwords is already up-to-date!
[nltk_data] Downloading package perluniprops to
[nltk_data]     /home/azat/nltk_data...
[nltk_data]   Package perluniprops is already up-to-date!
[nltk_data] Downloading package nonbreaking_prefixes to
[nltk_data]     /home/azat/nltk_data...
[nltk_data]   Package nonbreaking_prefixes is already up-to-date!
2019-06-13 19:12:24.502 INFO in 'deeppavlov.models.classifiers.ru_obscenity_classifier'['ru_obscenity_classifier'] at line 77: Initializing `RuObscenityClassifier`
text::Ты милый
>> not_obscene
text::Ты сука
>> obscene
text::
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/SultanovAR/ru_obscenity_classifier