commonsense / conceptnet5

Code for building ConceptNet from raw data.
Other
2.78k stars 355 forks source link

Filter based on Language #302

Closed lalchand-pandia closed 3 years ago

lalchand-pandia commented 3 years ago

I want to get results with relation=IsA and language preference is english. So, I am using a python request: response = requests.get('http://api.conceptnet.io/query?rel=/r/IsA&lang=en') Still, I am getting results in Japanese.

rspeer commented 3 years ago

lang isn't an API parameter. The query you want is:

http://api.conceptnet.io/query?rel=/r/IsA&start=/c/en&end=/c/en