Permalink
Browse files

Add readme

  • Loading branch information...
1 parent 39b93d6 commit 46a613e10a7efd572ad2157a41b7ef2b742a4406 @mullr committed Jun 6, 2011
Showing with 21 additions and 0 deletions.
  1. +21 −0 README.markdown
View
@@ -0,0 +1,21 @@
+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
+ }
+ }
+

0 comments on commit 46a613e

Please sign in to comment.