Skip to content

Ruby ActiveRecord mapping for the Japanese WordNet sqlite database

Notifications You must be signed in to change notification settings

mullr/WordnetJapanActiveRecord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

A simple ActiveRecord mapping to the Japanaese Wordnet database.

You can get the database here: http://nlpwww.nict.go.jp/wn-ja/index.en.html

Usage:

require './WordnetJapanActiveRecord/mapping.rb'
require 'pp'

ActiveRecord::Base.establish_connection(
  :adapter => 'sqlite3', 
  :database => "./wnjpn.db"
)                                      

Word.find_all_by_lemma("ruby").each {|word| 
  word.senses.each {|sense|
    pp sense.synset
  }
}

About

Ruby ActiveRecord mapping for the Japanese WordNet sqlite database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages