
NLP
nlp
LinJie98
开源 分享 快乐
展开
-
【NLP】Words Normalization+PorterStemmer源码解析
Words Normalization目录Words NormalizationStemming(词干提取)Lemmatisation(词形还原)PorterStemmer源码解析1、def __init__(self)2、def stem(self, p, i, j)3、def ends(self, s)4、举“matting”例子参考Stemming(词干提取)词干提取是去除单词的前后缀得到词根的过程caresses -> caressponies -> poni原创 2020-11-02 20:21:50 · 1118 阅读 · 0 评论 -
【NLP】Spell Correction
spell correction目录spell correction1、流程2、how to filter?计算此公式1、流程2、how to filter?输入字符串s,我们要找出最有可能成为正确的字符串c,也就是如下公式candidates是已知的候选集合,公式含义:找到c使得p(c|s)最大,并返回c的值(c hat)计算此公式...原创 2020-10-31 16:50:31 · 667 阅读 · 0 评论