Commit cfd4a683 authored by Tomasz Naskret's avatar Tomasz Naskret

README update

parent 92c6b1b2
Pipeline #2010 passed with stages
in 2 minutes and 1 second
......@@ -41,6 +41,10 @@ Creating API dumps from wordnet sql
Latest wordnet database dump can be obtained from
http://ws.clarin-pl.eu/public/wordnet-work.LATEST.sql.gz
$ wget http://ws.clarin-pl.eu/public/wordnet-work.LATEST.sql.gz
This step requires access to mysql server or installed locally.
It can be loaded using shell command:
$ mysql -e 'CREATE SCHEMA wordnet_new' # For maintaining multiple versions.
......@@ -57,10 +61,16 @@ Default values are all set to "wordnet", in the example DATABASE will be "wordne
mysql+mysqldb://wordnet:wordnet@localhost/wordnet_new?charset=utf8
After that, the database can be read and saved into the API format. Only works in Python 2!
To run next step make sure you have installed:
$ sudo apt-get install libmysqlclient-dev (when you are connecting to external mysql server)
$ pip install pymysql
$ pip install mysqlclient
$ pip install plwn_comments
$ pip install sqlalchemy
After that, the database can be read and saved into the API format.
>>> import sys; print(sys.version)
2.7.12
>>> import plwn
>>> api = plwn.read("connection.txt", "database", "plwn-new.db", "sqlite3")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment