Method: WordNet::Synset.load_exception_map

Defined in:
lib/rwordnet/synset.rb

.load_exception_mapObject



99
100
101
102
103
104
105
106
107
# File 'lib/rwordnet/synset.rb', line 99

def self.load_exception_map
    SYNSET_TYPES.each do |_, pos|
        @exception_map[pos] = {}
        File.open(File.join(@morphy_path, 'exceptions', "#{pos}.exc"), 'r').each_line do |line|
            line = line.split
            @exception_map[pos][line[0]] = line[1..-1]
        end
    end
end