检查字符串是否是语法上有效的句子?

use*_*930 5 java nlp

有没有办法检查字符串是否代表英文句子?我目前正在查看java软件包,但我找不到任何可以做到的东西.

the weather is good (valid)
the good is weather (invalid) 
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?

谢谢

nul*_*ent 1

你真正需要的是NLP解析器(语法分析)。

是用 Java 编写的,非常棒。