当NLP模型产生了语法错误,怎么办?
比如,He wants that you send him an email.
没关系,现在可以像小时候的英语老师,改作文一样简单。
只要装上一个专门纠正语法错误的库就可以,还是毫秒钟就可揪出来的那种。
这不,把“that”改成“to”不就可以了吗~
纠正过来就是:
He wants you to send him an email.
(不会真有人看不出其中的语法错误吧)
再比如这句。
I can due his homework.
应该变成:I can do his homework.
具体安装可分成如下四个步骤,详细可戳文末链接。
想要了解更多细节,呐~传送门送上!
参考链接:https://www.reddit.com/r/MachineLearning/comments/kzuaie/p_i_made_nlprule_a_library_for_fast_grammatical/
https://predictivehacks.com/languagetool-grammar-and-spell-checker-in-python/
GitHub网址:https://github.com/bminixhofer/nlprule