Changeset 93 for branches/rakefile-work/lib/wordnet/lexicon.rb
- Timestamp:
- 07/11/08 17:56:49 (4 months ago)
- Files:
-
- 1 modified
-
branches/rakefile-work/lib/wordnet/lexicon.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/rakefile-work/lib/wordnet/lexicon.rb
r87 r93 161 161 def checkpoint( bytes=0, minutes=0 ) 162 162 @env.checkpoint 163 end164 165 166 ### Return a list of archival logfiles that can be removed167 ### safely. (BerkeleyDB-specific).168 def archlogs169 return @env.log_archive( BDB::ARCH_ABS )170 163 end 171 164 … … 206 199 # that fails, trying morphological conversion. 207 200 entry = @index_db[ wordkey ] 201 208 202 if entry.nil? && (word = self.morph( word, part_of_speech )) 203 wordkey = self.make_word_key( word, part_of_speech ) 209 204 entry = @index_db[ wordkey ] 210 205 end … … 396 391 word = word.gsub( /\s+/, '_' ) 397 392 return "#{word}%#{pos}" 393 end 394 395 396 ### Return a list of archival logfiles that can be removed 397 ### safely. (BerkeleyDB-specific). 398 def archlogs 399 return @env.log_archive( BDB::ARCH_ABS ) 398 400 end 399 401
