update.
[chise/ruby.git] / tools / make-ids-database.rb
1 #!/usr/bin/env ruby
2 # Copyright (C) 2002-2004 Kouichirou Eto, All rights reserved.
3 # This tool read all IDS text database and store them as BDB files.
4 # with normalizing IDS.
5
6 $LOAD_PATH.unshift("..")
7 require "chise/idsdb"
8
9 man = CHISE::IDS_DB_Management.new
10 # make sure there is no conflict   ruby    : ext
11 man.check_conflict_of_ids_text  #  151.633 : 150.287
12 man.store_ids_as_text           #  172.024 : 177.618    86470
13 man.store_ids_de_er             #   47.99  :  38.926    81899
14 man.check_integrity_of_ids_tree #   58.185 :  48.015    79417
15 man.make_by_ids_db_org          #   29.572 :  24.511    75562
16 man.store_ids_aggregated        #   66.609 :  51.832    79417
17 man.store_ids_subparts          # 1638.966 : 959.413    79417
18 man.store_ids_contained         #  773.808 : 696.374
19 man.make_by_ids_db              #   28.071 :  31.0