我正在尝试计算可读性,但似乎所有内容都是为了期望文件路径或语料库而编写的。如何处理字符串?
错误(在标记化步骤中):
Error: Unable to locate
我尝试过:
str<-"Readability zero one. Ten, Eleven.", "The cat in a dilapidated tophat."
library(koRpus)
ll.tagged <- tokenize(str, lang="en")
readability(ll.tagged,measure="Flesch.Kincaid")
答案 0 :(得分:0)
您需要下载语言文件
async def chat_message(self, event):
"""
Called when someone has messaged our chat.
"""
# Send a message down to the client
await self.send_json(
{
"msg_type": settings.MSG_TYPE_MESSAGE,
"room": event["room_id"],
"username": event["username"],
"message": event["message"],
},
)