# File lib/cassiopee.rb, line 390 def loadAmbiguityFile(f) if(!File.exists?(f)) $log.error("File "<< f << "does not exists") exit(1) end @ambiguous = Hash.new file = File.new(f, "r") while (line = file.gets) definition = line.downcase.chomp ambdef = definition.split('=') ambequal = ambdef[1].split(',') @ambiguous[ambdef[0]] = ambequal end @useAmbiguity = true $log.debug("loaded ambiguity rules: " << @ambiguous.inspect()) file.close end