commonsense / conceptnet5

Code for building ConceptNet from raw data.
Other
2.76k stars 352 forks source link

Function behind web api field #74

Closed arekbulski closed 7 years ago

arekbulski commented 7 years ago

Which function is called when web api is queried? I would like to call it locally.

rspeer commented 7 years ago

All the functions that the web API uses can be found in the conceptnet_web.responses module, which calls various things in conceptnet5.db.query and conceptnet5.vectors.query.

Here's a link to responses.py (sorry that it doesn't have many comments):

https://github.com/commonsense/conceptnet5/blob/master/web/conceptnet_web/responses.py

Feel free to ask questions in the Gitter chat room.