腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(189)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
1
回答
如何处理“ImportError:没有名为
profanity
_check的模块”
我试图让
profanity
_check在EC2 Linux实例上运行。问题是,当我尝试使用ImportError: No module named
profanity
_check运行
profanity
.py时,会得到一个python34
profanity
.py错误。此外,当尝试运行python
profanity
.py时,我会得到一个ValueError: unsupported pickle protocol: 3错误。我认为这是因为
profanity
_check只适用于Python
浏览 3
修改于2019-05-07
得票数 0
回答已采纳
1
回答
如何修复
profanity
_filter字符串转换错误
我正在尝试在flutter中使用ProfanityFilter,来过滤评论内容中的坏词,这是一个字符串。ProfanityFilter有一个被审查的单词列表,我想把它和LDNOOBW list中没有的脏话列表一起传递。但是,因为内容是字符串,所以我使用了强制转换,然后我得到了强制转换错误:类型'ProfanityFilter‘不是类型强制转换中的类型' string’的子类型。 TextFormField( prefixIcon: Icon(Icons.comment
浏览 20
提问于2021-08-09
得票数 0
回答已采纳
1
回答
为什么Quanteda不删除单词?
<- "
profanity
.txt"
profanity
.url <- "https://raw.githubusercontent.com/shutterstock= profanityFileName, method = "curl")
浏览 18
提问于2019-08-30
得票数 2
1
回答
在python中,有没有更快的替代更好的亵渎0.7.0的方法?
import language_tool_pythonfrom better_
profanity
import
profanity
for x in df.Text.values: bad_words =
profanity
.cont
浏览 8
提问于2022-09-07
得票数 1
回答已采纳
3
回答
PHP变量作用域帮助
require_once('classes/class.validation.php'); $pass_
profanity
= false;function check_for_
profanity
($input){ foreach($inputas $row){
浏览 3
提问于2011-07-14
得票数 0
回答已采纳
1
回答
如何在__init__中将全局变量集声明为方法?
文件1(要导入的文件),称为
profanity
_filter.py censored_transcript =
profanity
.censor(self.__transcript) 文件2(测试文件): from
profanity
浏览 10
提问于2020-10-21
得票数 0
回答已采纳
1
回答
亵渎检查错误无法从'sklearn.externals‘导入名称'joblib’
我有一个环境,我刚刚安装了
profanity
_check,但当我运行我的代码时,我得到一个错误: Traceback (most recent call last): from
profanity
_check import predict, predict_prob File "D:\bot\bot\lib\site-packages\
profanity
_check\__init__.py", line 1
浏览 25
提问于2021-03-26
得票数 1
1
回答
"TypeError:需要一个类似字节的对象,而不是'str'“。我该如何解决这个问题呢?
以下是代码;import urllib.parse quotes = open("C:\Check
Profanity
(contents_of_file) encoded_text = urllib.parse.quote(text_to_checkconnection.read() connection.close() if
浏览 4
提问于2018-01-16
得票数 3
回答已采纳
4
回答
将攻击性句子列入黑名单
iostream> std::vector bannedSent = { "
Profanity
2", "
Profanity
4" for(auto &i : ban
浏览 0
修改于2016-03-10
得票数 1
1
回答
Mysql查询order by multiple items(语句)
SELECT karma , username ORDER 如何按ORDER BY (karma -
profanity
) DESC LIMIT 10和ORDER BY
profanity
DESC LIMIT 10订购 (`id` int, `username` varchar(55), `karma` int,`
p
浏览 9
修改于2016-08-24
得票数 1
回答已采纳
2
回答
如何使用python3检查亵渎
Users\\no1\\Desktop\\movie_quotes.txt") quotes.close() a=urllib.parse.urlencode(text_to_check)a=a.encode('utf-8') connection=urllib.request.urlopen
浏览 4
修改于2015-06-26
得票数 0
1
回答
在Python中使用类中的类变量时出现无法理解的名称错误
我是新接触面向对象编程的,并且我有以下关于类变量的问题:我想使用一个亵渎过滤器,对于这个过滤器,我有一个类
Profanity
,我想在__init__方法中传递一个脚本文件和一个单词列表文件作为参数。生成的对象应该这样定义:p =
Profanity
("sample_transcript.txt", eng),其中eng代表英语,该语言参数应该可以替换为其他语言参数,如deu代表德语等。为此,我直接在class命令下面定义了类变量eng = "/home/user/sw_filter/wor
浏览 19
修改于2020-10-27
得票数 1
1
回答
如何检查字符串是否包含列表中的单词
banned_words = ["a","e","i","o","u"] #This will be filled with swear words if word in banned_words:
profanity
= True if <
浏览 2
修改于2018-06-05
得票数 2
1
回答
如何根据FireBase数据快照检查用户名的亵渎性
下面是我使用的一些代码: var
profanity
: Bool = false dataRef.child("
Profanity
").observeSingleEventOfType(.Value)FIRDataSnapshot) in if(snap
浏览 1
修改于2016-07-30
得票数 2
回答已采纳
2
回答
脏话过滤器
/* take userinput and determine if it contains
profanity
System.out.println("Your post contains
profanity
."); System.out.println("Your post conta
浏览 3
修改于2015-05-29
得票数 1
1
回答
为什么我的输出会抛出一个意外的结果?
movie_quotes.txt") print(contents_of_file) check_
profanity
(contents_of_file) connection = urllib.urlopen("http://www.wdyl.com/
profanity
?<bo
浏览 2
提问于2016-08-24
得票数 0
1
回答
spaCy -自定义模型上的文本处理
All the best-PRON- sweet person
浏览 2
修改于2020-05-22
得票数 2
回答已采纳
2
回答
用于替换字符串中脏话的正则表达式
现在我有了一个循环,它的性能不是很好: var
profanity
= ['ass', 'bottom', 'damn', 'shit']; s = s.replace(
profanity
[i], "###!")
浏览 2
修改于2011-03-12
得票数 4
回答已采纳
1
回答
如何从PHP字符串中的数组中找到准确的单词
php $profaneReport = ""; $
profanity
_list= "lass tite able"; $wordsFoundInProfaneList'<&
浏览 1
提问于2020-08-27
得票数 1
回答已采纳
1
回答
获取API函数调用外部变量的值
asyncHandler(async (req, res) => { content: content, toxicity: toxicity,
profanity
:
profanity
, }; let inputText = ne
浏览 6
提问于2022-04-24
得票数 1
回答已采纳
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
第 8 页
第 9 页
第 10 页
点击加载更多
领券