So I am trying to write a program that will take in 2 strings, for example:
"I like pizza better cold"
And
"I really enjoy pizza when it is chilled"
And figure out if these two things match each other in comparison to something like:
"I like pizza better cold"
And
"Pizza really sucks."
Where the above would not be a match.
I have come to the NLTK language available for Python to do this. I am just wondering if there is anyone out there who has worked on something like this before and has any advice? Is NLTK the way to go? Any functions or specs I should use?
I am thinking about splitting the strings into tokens and then picking out the adjectives and nouns as the main method of tagging then possibly using a sentiment analysis algorithm to determine if it is positive or not then match the strings based on this...
This is just a small side project I am working on for fun, so anything would be beneficial here :)
Cheers, Will