Code Monkey home page Code Monkey logo

Comments (3)

rspeer avatar rspeer commented on August 23, 2024

pymongo and flask are separate Python packages.

You should have gotten pymongo automatically when you ran "python
setup.py install". Flask is not automatic because not everyone who
develops conceptnet5 needs to run the Web interface; you can get it
with "easy_install flask" if you have easy_install, or you can
download it from http://pypi.python.org/pypi/Flask.

Note that if you're trying to put up your own copy of the Web
interface, you will also need to host a MongoDB and populate it with
lots of data, perhaps by importing our JSON datasets. Is this really
what you're trying to do? Or are you just looking for an API to the
data we already have?

-- Rob

On Wed, Dec 7, 2011 at 8:55 AM, yexiajing
[email protected]
wrote:

when I run conceptnet5.graph it says "ImportError: No module named pymongo" and "ImportError: No module named Flask" when run conceptnet5.web_interface.web_interface...


Reply to this email directly or view it on GitHub:
#11

from conceptnet5.

yexiajing avatar yexiajing commented on August 23, 2024

2011/12/8 Rob Speer <
[email protected]

pymongo and flask are separate Python packages.

You should have gotten pymongo automatically when you ran "python
setup.py install". Flask is not automatic because not everyone who
develops conceptnet5 needs to run the Web interface; you can get it
with "easy_install flask" if you have easy_install, or you can
download it from http://pypi.python.org/pypi/Flask.

Thank you for these, I have already have pymongo and flask.

Note that if you're trying to put up your own copy of the Web
interface, you will also need to host a MongoDB and populate it with
lots of data, perhaps by importing our JSON datasets.

I notice that in the ChangeLog, it says "You need a file called
"secrets.sh" in your JSON data directory, containing the database username
and password. You also need an equivalent file called "secrets.py" to
access the database." I have download a JSON db and unzip it(about 20.3GB
in my computer), so how to populate it?

Is this really
what you're trying to do? Or are you just looking for an API to the
data we already have?

I am a student who are doing some research about semantic search and now
are interested in conceptnet5. Is there an API? Or I can just access the
data through typing the url like "
http://conceptnet5.media.mit.edu/web/concept/en/learn"?

-- Rob

Regards,
Erica

On Wed, Dec 7, 2011 at 8:55 AM, yexiajing
[email protected]
wrote:

when I run conceptnet5.graph it says "ImportError: No module named
pymongo" and "ImportError: No module named Flask" when run
conceptnet5.web_interface.web_interface...


Reply to this email directly or view it on GitHub:
#11


Reply to this email directly or view it on GitHub:
#11 (comment)

from conceptnet5.

rspeer avatar rspeer commented on August 23, 2024

Okay, great. If you want to run your own copy of the DB, you could
start a MongoDB server and run "mongoimport" on that server to load
the JSON files:

mongoimport --upsert --upsertFields uri -d conceptnet -c nodes nodes.json
mongoimport --upsert --upsertFields key -d conceptnet -c edges edges.json

There's an API for getting data from nodes; each page in /web/ has a
link at the bottom to the corresponding API page whose url starts with
/data/. Documentation on this API is at:
https://github.com/commonsense/conceptnet5/wiki/API

-- Rob

On Thu, Dec 8, 2011 at 7:56 AM, yexiajing
[email protected]
wrote:

2011/12/8 Rob Speer <
[email protected]

pymongo and flask are separate Python packages.

You should have gotten pymongo automatically when you ran "python
setup.py install". Flask is not automatic because not everyone who
develops conceptnet5 needs to run the Web interface; you can get it
with "easy_install flask" if you have easy_install, or you can
download it from http://pypi.python.org/pypi/Flask.

Thank you for these, I have already have pymongo and flask.

Note that if you're trying to put up your own copy of the Web
interface, you will also need to host a MongoDB and populate it with
lots of data, perhaps by importing our JSON datasets.

I notice that in the ChangeLog, it says "You need a file called
"secrets.sh" in your JSON data directory, containing the database username
and password. You also need an equivalent file called "secrets.py" to
access the database."  I have download a JSON db and unzip it(about 20.3GB
in my computer), so how to populate it?

Is this really
what you're trying to do? Or are you just looking for an API to the
data we already have?

I am a student who are doing some research about semantic search and now
are interested in conceptnet5. Is there an API? Or I can just access the
data through typing the url like "
http://conceptnet5.media.mit.edu/web/concept/en/learn"?

-- Rob

Regards,
Erica

On Wed, Dec 7, 2011 at 8:55 AM, yexiajing
[email protected]
wrote:

when I run conceptnet5.graph it says "ImportError: No module named
pymongo" and "ImportError: No module named Flask" when run
conceptnet5.web_interface.web_interface...


Reply to this email directly or view it on GitHub:
#11


Reply to this email directly or view it on GitHub:
#11 (comment)


Reply to this email directly or view it on GitHub:
#11 (comment)

from conceptnet5.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.