machinalis / quepy

A python framework to transform natural language questions to queries in a database query language.
Other
1.25k stars 296 forks source link

Countries aren't the only thing with capitols #3

Closed tfmorris closed 8 years ago

tfmorris commented 11 years ago

When I ask "What is the capital of Massachusetts?" it fails to find an answer because it thinks Massachusetts is a country.

rafacarrascosa commented 11 years ago

Thank you Tom, we'll look into modifying the query handler for that question.

tfmorris commented 8 years ago

Thanks for looking into this, but note that the original query was "What is the capitol?" not "What is the population?" I'll retest with the new code when I get a chance, but it may be a while.

tfmorris commented 8 years ago

In Freebase terms, the property that you want is /location/administrative_division/capital and the corresponding type is /location/administrative_division. I'm not sure what the equivalents would be for DBpedia.