I'm looking for an open source library/framework to perform (what I think is called?) sentence inversion. What I'm looking to do is take a sentence like:

Is ice cream cold?

and use NLG to grammatically invert the sentence to:

Ice cream is cold. 

My dataset contains declarative natural language sentences in various formats; so I'd need a more "universal" system to handle it.

What library/frameworks are the simplest (in terms of the least lines of code without obfuscation) to use to achieve this?



You must log in to answer this question.