Intro: This is an intelligent knowledge management system.
Members: Chen Yanjun, Shan Haoxuan, Wang Hanyu, Yang Jiamin.
- Install pymongo from:
$ pip install pymongo
- Download MongoDB from:
(i). For windows server : https://www.mongodb.com/download-center
(ii). For linux server :
Download by wget:
$ mkdir -p /home/tools
$ cd /home/tools
$ wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.4.2.tgz
Then add the path:
$ export PATH=/home/tools/mongodb/bin:$PATH
$ mkdir -p /data/db
$ mongod --dbpath /data/db
For the server mode, starting the progarm with:
$ mongod --dbpath /data/db
$ python app.py
process(string)
: Return the list of high frequence words.
app.route('/')
: Show the index interface.
app.route('/<tag>')
: Show the inside interface.
__init__
: connect to the MongoClient 'mongodb://localhost:27017/' and clear the original files.
add(dictionay)
: add the dictionary to the database.
add_auto(string)
: autometically add the context to the database.
Find(string)
: Return the list of records with given tag.
__init__
: create a piece of new data
tolist
: convert the data in to a list
todict
: convert the data in to a dictionary
Hack_cur
|--templates
|--index.html
|--inside.html
|--static
|--data
|--db
|--data
|--stopwords
|--app.py
|--data.py
|--process.py
|--plugin