Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PLWN_API
Manage
Activity
Members
Labels
Plan
Issues
10
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Libraries
PLWN_API
Commits
cfd4a683
Commit
cfd4a683
authored
4 years ago
by
Tomasz Naskret
Browse files
Options
Downloads
Patches
Plain Diff
README update
parent
92c6b1b2
No related merge requests found
Pipeline
#2010
passed with stages
in 2 minutes and 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+13
-3
13 additions, 3 deletions
README.md
with
13 additions
and
3 deletions
README.md
+
13
−
3
View file @
cfd4a683
...
...
@@ -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")
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment