Show
Ignore:
Timestamp:
07/11/08 17:56:49 (4 months ago)
Author:
deveiant
Message:
  • Synched Rakefile with rake-tasklibs
  • Started conversion of synset tests to specs
  • Finished converting lexicon tests to specs
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/rakefile-work/lib/wordnet/lexicon.rb

    r87 r93  
    161161    def checkpoint( bytes=0, minutes=0 ) 
    162162        @env.checkpoint 
    163     end 
    164  
    165  
    166     ### Return a list of archival logfiles that can be removed 
    167     ### safely. (BerkeleyDB-specific). 
    168     def archlogs 
    169         return @env.log_archive( BDB::ARCH_ABS ) 
    170163    end 
    171164 
     
    206199        # that fails, trying morphological conversion. 
    207200        entry = @index_db[ wordkey ] 
     201 
    208202        if entry.nil? && (word = self.morph( word, part_of_speech )) 
     203            wordkey = self.make_word_key( word, part_of_speech ) 
    209204            entry = @index_db[ wordkey ] 
    210205        end 
     
    396391        word = word.gsub( /\s+/, '_' ) 
    397392        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 ) 
    398400    end 
    399401