diff --git a/README.md b/README.md index d24b7d07a769ff098561483a2da040ef47e021a2..bb97b468d0e7ccf3714cfe096f30d6086f24da3f 100644 --- a/README.md +++ b/README.md @@ -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")