Closed talentoscope closed 6 years ago
It didn't include TV show because it includes a certain number of nouns on the opposite side of the question word. Don't know how method 1 failed to detect "how i met your mother" because it worked on my machine. For method 3, you would have to determine yourself that "barney stinson" is the more important noun.
You might not have the most updated repository, because that line of code does not exist anymore. "NN" in tag_type
detects all types of nouns.
The search.py class find_nouns appears to be slightly broken. NN and NNP tags are found, but not all are included, and I'm not quite sure why that is.
Example question:
Here, "TV show" should be another instance in the list of question_key_nouns, as there are two consecutive NN tags, but it isn't. NNS tags should probably be included too I think, or really NN* since there are 4 POS tags for nouns, unless this elif:
includes them already.