From cfd4a68340625ae08a410ff58b671ffea23a6843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Naskr=C4=99t?= <tomasz.naskret@pwr.edu.pl> Date: Wed, 28 Oct 2020 15:32:00 +0100 Subject: [PATCH] README update --- README.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d24b7d0..bb97b46 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") -- GitLab