profanity-filter | Python module that replaces inappropriate words
kandi X-RAY | profanity-filter Summary
kandi X-RAY | profanity-filter Summary
Python module that replaces inappropriate words with something more PG rated.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Initialize the class .
- Return cleaned string .
profanity-filter Key Features
profanity-filter Examples and Code Snippets
Community Discussions
Trending Discussions on profanity-filter
QUESTION
I need the Spacy model 'en' for the Python profanity-filter. I would like to have a requirements.txt
file that installs everything needed. I have the following:
ANSWER
Answered 2021-Nov-01 at 04:47You can't fix this in requirements.txt
. Making the shortcut en
work for the model en_core_web_sm
isn't a property of the installed package, it's something spaCy manages separately. The shortcut process relies on symbolic links and is kind of flaky, which is why it was removed in v3.
Since it looks like the profanity filter package is abandoned, your options are running spacy link
from the command line or modifying the profanity filter package yourself.
You could also figure out what spacy link
is doing and do that (or call the relevant functions) in code.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install profanity-filter
You can use profanity-filter like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page