Comments (3)
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.
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,
EricaOn 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.
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,
EricaOn 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)
- possible to continue the installation after error ?
- Does the tzw.ent.npy file use glove to initialize the entities in the concept? How is the npy file created? HOT 1
- WEB API v5.7 - Language Filter
- Internal Server Error 500 while accessing the API HOT 13
- `pytest --fulldb` five fails. HOT 6
- limiter fails HOT 6
- Does the csv have all the data that is queried from wiktionary and other sources?
- `grouped=true` queries do not return in features
- DB AssertionFInder connection() takes 0 positional arguments but 1 was given HOT 1
- ConceptNet 5.8.1 AMI root volume snapshot should be public to enable copying the AMI to other regions.
- Synonym symmetric relation
- Multiple Word Based Queries returning as No Node whilst Node(Word) being present in conceptnet.io HOT 1
- 500 Internal Server Error HOT 4
- Add link to AWS Docs to Wiki
- Internal server error: 500 HOT 4
- https://www.conceptnet.io/c/en/talbe HOT 2
- Situation -- a type of --> State (as in California, Maryland, etc.) HOT 2
- How to model non-existent relations
- concepts need definitions HOT 2
- Not a good description for this term in context.ld.json
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conceptnet5.