当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://img-blog.csdnimg.cn/img_convert/0a9792c71d7e47ff870db1f076dd7660.png)
具体安装可分成如下四个步骤,详细可戳文末链接。
![](https://img-blog.csdnimg.cn/img_convert/16502ce2911e47fd99899b5a982904b1.png)
想要了解更多细节,呐~传送门送上!
https://predictivehacks.com/languagetool-grammar-and-spell-checker-in-python/