tr_speed.rb in mesh-medical-subject-headings-1.3.0 vs tr_speed.rb in mesh-medical-subject-headings-2.0.1
- old
+ new
@@ -1,8 +1,8 @@
require_relative 'lib/MESH'
puts DateTime.now
-MESH::Mesh.configure(filename: 'data/mesh_data_2014/d2014.bin.gz')
+MESH::Heading.configure(filename: 'data/mesh_data_2014/d2014.bin.gz')
puts DateTime.now
-MESH::Mesh.translate('en-GB', MESH::Translator.new(MESH::Translator.enus_to_engb))
+MESH::Heading.translate('en-GB', MESH::Translator.new(MESH::Translator.enus_to_engb))
puts DateTime.now