[英]How to know if two words have the same base?
I want to know, in several languages, if two words are: 我想用几种语言知道,如果两个词是:
For example: 例如:
had
and has
has the same base: in both cases, it's the verb have
, had
和has
具有相同的基础:在这两种情况下,它的动词have
, city
and cities
has the same base. city
和cities
有相同的基础。 went
and gone
has the same base. went
又gone
就有了同样的基础。 Is there a way to use the Microsoft Word API to not just spell check text, but also normalize a word to a base or, at least, determine if two words have the same base? 有没有办法使用Microsoft Word API不仅拼写检查文本,还可以将单词规范化为基数,或者至少确定两个单词是否具有相同的基数?
If not, what are the (free or paid) libraries (not web services) which allow me to do it (again, in several languages)? 如果没有,那么允许我这样做的(免费或付费)库(不是网络服务)是什么(再次,用几种语言)?
Inflector.NET is an open source library that you can use to normalize the inflection of English nouns . Inflector.NET是一个开源库,可用于规范化英语名词的变形。 Available at: https://github.com/davidarkemp/Inflector/tree/master/Inflector
可在以下网址获得: https : //github.com/davidarkemp/Inflector/tree/master/Inflector
Snowball is a stemming API that can handle various natural languages and there are Snowball implementations for various programming languages. Snowball是一种可以处理各种自然语言的词干API,并且有针对各种编程语言的Snowball实现。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.