bin/profile_in_text in mesh-medical-subject-headings-2.3.0 vs bin/profile_in_text in mesh-medical-subject-headings-3.0.0
- old
+ new
@@ -40,12 +40,12 @@
json_str = File.new('./example.json').read
extracted = JSON.parse(json_str)
result = RubyProf.profile do
- title_headings = time_this('Matching in title') { mesh_tree.match_in_text(extracted['title']) }
+ # title_headings = time_this('Matching in title') { mesh_tree.match_in_text(extracted['title']) }
# description_headings = time_this('Matching in description') { mesh_tree.match_in_text(extracted['description']) }
- # content_headings = time_this('Matching in content') { mesh_tree.match_in_text(extracted['content']) }
+ content_headings = time_this('Matching in content') { mesh_tree.match_in_text(extracted['content']) }
# classifier = MESH::Classifier.new()
# classification = time_this('Classifying from matches') { classifier.classify([
# {weight: 10.0, matches: title_headings},
# {weight: 5.0, matches: description_headings},
\ No newline at end of file