- How to use
git clone https://github.com/Macho000/JapaneseWordNet
sqlite3 wnjpn.db
-
select word.lemma from sense inner join word on sense.wordid=word.wordid inner join synset on synset.synset=sense.synset where synset.name=?
-
select synset_def.def from synset_def left join synset on synset.synset=synset_def.synset where synset.name=?
-
select synset_ex.def from synset_ex left join synset on synset_ex.synset=synset.synset where synset.name=?
python3 searchWords --inputfile yourtext.txt
yourtext.txt is like this
word
happy
software
network
sqlite3 db.sqlite3 .dump > dump.sql
cat dump.sql | python sqlite3-to-mysql.py > mysql.sql
$ mysql -u USERNAME -p
mysql> CREATE DATABASE hoge CHARACTER SET utf8mb4;
mysql> USE hoge;
mysql> source /path/to/mysql.sql;