Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check if string is a grammatically valid sentence? [closed]

Tags:

java

nlp

Is there a way to check if a string represents an English sentence? I am currently looking at java packages but I cannot find anything that does it yet.

i.e.

the weather is good (valid)
the good is weather (invalid) 

Any ideas?

Thanks

like image 461
user1663930 Avatar asked Nov 12 '22 22:11

user1663930


1 Answers

What you really need is NLP parser (grammatical analysis).

This one is written in Java and it is fantastic.

like image 66
nullpotent Avatar answered Nov 15 '22 12:11

nullpotent