update.
[chise/ruby.git] / chise / libchise.rb
1 # Copyright (C) 2002-2004 Kouichirou Eto, All rights reserved.
2
3 $LOAD_PATH.unshift("../ext")
4 require "chise/libchise_r"
5 begin
6   require "libchise_c.so"
7   #raise LoadError # uncomment, if you'd like to use libchise_r.
8   module CHISE
9     DataSource = DataSource_C
10     Feature = Feature_C
11     CCS = CCS_C
12   end
13 rescue LoadError
14   module CHISE
15     DataSource = DataSource_R
16     Feature = Feature_R
17     CCS = CCS_R
18   end
19 end