forked from cidgoh/LexMapr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* pass partialMatchedResourceListSet as list to retainedPhrase() * Updated tests for retainedPhrase() * Updated small_simple expected test output * Clean up test output files * Sort outputs before printing, GComponent -> Component, add newline at end * Show more detail when test output doesn't match expected output * Print ontofetch/ontohelper to stderr. Update test output * Use print function in py2.7 * Remove unused pretty printer * Stop testing py27 start testing py37 * Drop py37 testing
- Loading branch information
Showing
25 changed files
with
172 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Sample_Id Sample_Desc Cleaned_Sample Phrase_POS_Tagged Probable_Candidate_Terms Matched_Term All_matched_Terms_with_Resource_IDs Retained_Terms_with_Resource_IDs Number of Components(In case of Component Match) Match_Status(Macro Level) Match_Status(Micro Level) Remaining_Tokens Different Components(In case of Component Match) | ||
Sample_Id Sample_Desc Cleaned_Sample Phrase_POS_Tagged Probable_Candidate_Terms Matched_Term All_matched_Terms_with_Resource_IDs Retained_Terms_with_Resource_IDs Number of Components(In case of Component Match) Match_Status(Macro Level) Match_Status(Micro Level) Remaining_Tokens Different Components(In case of Component Match) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Sample_Id Sample_Desc Cleaned_Sample | ||
Sample_Id Sample_Desc Cleaned_Sample |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Sample_Id Sample_Desc Cleaned_Sample Phrase_POS_Tagged Probable_Candidate_Terms Matched_Term All_matched_Terms_with_Resource_IDs Retained_Terms_with_Resource_IDs Number of Components(In case of Component Match) Match_Status(Macro Level) Match_Status(Micro Level) Remaining_Tokens Different Components(In case of Component Match) | ||
small_simple1 Chicken Breast chicken breast [('chicken', 'NN'), ('breast', 'NN')] chicken breast chicken breast ['chicken breast:CandidateTerm_FoodOn_246'] ['chicken breast:CandidateTerm_FoodOn_246'] Full Term Match ['Change of Case in Input Data'] | ||
small_simple2 Baked Potato baked potato [('baked', 'VBN'), ('potato', 'NN')] potato baked potato ['potato (baked):FOODON_03302196'] ['potato (baked):FOODON_03302196'] Full Term Match ['Permutation of Tokens in Bracketed Resource Term'] | ||
small_simple3 Canned Corn canned corn [('canned', 'VBN'), ('corn', 'NN')] corn canned corn ['corn (canned):FOODON_03302665'] ['corn (canned):FOODON_03302665'] Full Term Match ['Permutation of Tokens in Bracketed Resource Term'] | ||
small_simple4 Frozen Yogurt frozen yogurt [('frozen', 'JJ'), ('yogurt', 'NN')] yogurt frozen yogurt ['frozen yogurt:FOODON_03307445'] ['frozen yogurt:FOODON_03307445'] Full Term Match ['Change of Case in Input Data'] | ||
small_simple5 Apple Pie apple pie [('apple', 'NN'), ('pie', 'NN')] apple pie ['pie', 'apple food product'] ['pie:CandidateTerm_FoodOn_839', 'apple food product:FOODON_00001611'] ["apple food product:FOODON_00001611'", 'pie:CandidateTerm_FoodOn_839'] 2 GComponent Match ['Suffix Addition- food product to the Input'] [] Component1-> apple food product:FOODON_00001611', Component2-> pie:CandidateTerm_FoodOn_839 | ||
small_simple1 Chicken Breast chicken breast [('chicken', 'NN'), ('breast', 'NN')] chicken breast ['chicken breast'] ['chicken breast:CandidateTerm_FoodOn_246'] ['chicken breast:CandidateTerm_FoodOn_246'] Full Term Match ['Change of Case in Input Data'] | ||
small_simple2 Baked Potato baked potato [('baked', 'VBN'), ('potato', 'NN')] potato ['baked potato'] ['potato (baked):FOODON_03302196'] ['potato (baked):FOODON_03302196'] Full Term Match ['Permutation of Tokens in Bracketed Resource Term'] | ||
small_simple3 Canned Corn canned corn [('canned', 'VBN'), ('corn', 'NN')] corn ['canned corn'] ['corn (canned):FOODON_03302665'] ['corn (canned):FOODON_03302665'] Full Term Match ['Permutation of Tokens in Bracketed Resource Term'] | ||
small_simple4 Frozen Yogurt frozen yogurt [('frozen', 'JJ'), ('yogurt', 'NN')] yogurt ['frozen yogurt'] ['frozen yogurt:FOODON_03307445'] ['frozen yogurt:FOODON_03307445'] Full Term Match ['Change of Case in Input Data'] | ||
small_simple5 Apple Pie apple pie [('apple', 'NN'), ('pie', 'NN')] apple pie ['apple food product', 'pie'] ['apple food product:FOODON_00001611', 'pie:CandidateTerm_FoodOn_839'] ['apple food product:FOODON_00001611', 'pie:CandidateTerm_FoodOn_839'] 2 Component Match ['Suffix Addition- food product to the Input'] [] Component1-> apple food product:FOODON_00001611, Component2-> pie:CandidateTerm_FoodOn_839 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
Sample_Id Sample_Desc Cleaned_Sample Phrase_POS_Tagged Probable_Candidate_Terms Matched_Term All_matched_Terms_with_Resource_IDs Retained_Terms_with_Resource_IDs Number of Components(In case of Component Match) Match_Status(Macro Level) Match_Status(Micro Level) Remaining_Tokens Different Components(In case of Component Match) | ||
small_simple1 Breast breast [('breast', 'NN')] breast breast ['breast:CandidateTerm_FoodOn_188'] ['breast:CandidateTerm_FoodOn_188'] Full Term Match ['Change of Case in Input Data'] | ||
small_simple2 Baked Potato baked potato [('baked', 'VBN'), ('potato', 'NN')] potato baked potato ['potato (baked):FOODON_03302196'] ['potato (baked):FOODON_03302196'] Full Term Match ['Permutation of Tokens in Bracketed Resource Term'] | ||
small_simple3 fld fluid [('fluid', 'NN')] fluid fluid ['fluid:CandidateTerm_OtherOntology_76'] ['fluid:CandidateTerm_OtherOntology_76'] Full Term Match ['Abbreviation-Acronym Treatment', 'A Direct Match with Cleaned Sample'] | ||
small_simple4 froz fld frozen fluid [('frozen', 'JJ'), ('fluid', 'NN')] fluid ['fluid', 'preservation by freezing'] ['preservation by freezing:FOODON_03470136', 'fluid:CandidateTerm_OtherOntology_76'] ["fluid:CandidateTerm_OtherOntology_76'", 'preservation by freezing:FOODON_03470136'] 2 GComponent Match ['Synonym Usage', 'Abbreviation-Acronym Treatment'] ['froz'] Component1-> fluid:CandidateTerm_OtherOntology_76', Component2-> preservation by freezing:FOODON_03470136 | ||
small_simple5 fld apple fluid apple [('fluid', 'NN'), ('apple', 'NN')] fluid apple ['fluid', 'apple food product'] ['apple food product:FOODON_00001611', 'fluid:CandidateTerm_OtherOntology_76'] ["fluid:CandidateTerm_OtherOntology_76'", 'apple food product:FOODON_00001611'] 2 GComponent Match ['Abbreviation-Acronym Treatment', 'Suffix Addition- food product to the Input'] [] Component1-> fluid:CandidateTerm_OtherOntology_76', Component2-> apple food product:FOODON_00001611 | ||
small_simple6 csf cerebrospinal fluid [('cerebrospinal', 'JJ'), ('fluid', 'NN')] fluid cerebrospinal fluid ['cerebrospinal fluid:ENVO_02000029'] ['cerebrospinal fluid:ENVO_02000029'] Full Term Match ['Change Case and Abbreviation-Acronym Treatment', 'A Direct Match with Cleaned Sample'] | ||
small_simple7 csf f cerebrospinal fluid fahrenheit [('cerebrospinal', 'JJ'), ('fluid', 'NN'), ('fahrenheit', 'NN')] fluid fahrenheit ['cerebrospinal fluid', 'fluid', 'cerebrospinal'] ['cerebrospinal:Quality-BodyRelated', 'cerebrospinal fluid:ENVO_02000029', 'fluid:CandidateTerm_OtherOntology_76'] ['cerebrospinal fluid:ENVO_02000029'] 1 GComponent Match ['Using Semantic Tagging Resources', 'Change Case and Abbreviation-Acronym Treatment'] ['f'] Component1-> cerebrospinal fluid:ENVO_02000029 | ||
small_simple8 Pie csf pie cerebrospinal fluid [('pie', 'JJ'), ('cerebrospinal', 'JJ'), ('fluid', 'NN')] fluid ['cerebrospinal fluid', 'fluid', 'pie', 'cerebrospinal'] ['cerebrospinal:Quality-BodyRelated', 'cerebrospinal fluid:ENVO_02000029', 'pie:CandidateTerm_FoodOn_839', 'fluid:CandidateTerm_OtherOntology_76'] ['cerebrospinal fluid:ENVO_02000029', 'pie:CandidateTerm_FoodOn_839'] 2 GComponent Match ['Using Semantic Tagging Resources', 'Change Case and Abbreviation-Acronym Treatment'] [] Component1-> cerebrospinal fluid:ENVO_02000029, Component2-> pie:CandidateTerm_FoodOn_839 | ||
small_simple9 csf fld cerebrospinal fluid fluid [('cerebrospinal', 'JJ'), ('fluid', 'NN'), ('fluid', 'NN')] fluid fluid ['cerebrospinal fluid', 'fluid', 'cerebrospinal'] ['cerebrospinal:Quality-BodyRelated', 'cerebrospinal fluid:ENVO_02000029', 'fluid:CandidateTerm_OtherOntology_76'] ['cerebrospinal fluid:ENVO_02000029'] 1 GComponent Match ['Abbreviation-Acronym Treatment', 'Using Semantic Tagging Resources', 'Change Case and Abbreviation-Acronym Treatment'] [] Component1-> cerebrospinal fluid:ENVO_02000029 | ||
small_simple1 Breast breast [('breast', 'NN')] breast ['breast'] ['breast:CandidateTerm_FoodOn_188'] ['breast:CandidateTerm_FoodOn_188'] Full Term Match ['Change of Case in Input Data'] | ||
small_simple2 Baked Potato baked potato [('baked', 'VBN'), ('potato', 'NN')] potato ['baked potato'] ['potato (baked):FOODON_03302196'] ['potato (baked):FOODON_03302196'] Full Term Match ['Permutation of Tokens in Bracketed Resource Term'] | ||
small_simple3 fld fluid [('fluid', 'NN')] fluid ['fluid'] ['fluid:CandidateTerm_OtherOntology_76'] ['fluid:CandidateTerm_OtherOntology_76'] Full Term Match ['A Direct Match with Cleaned Sample', 'Abbreviation-Acronym Treatment'] | ||
small_simple4 froz fld frozen fluid [('frozen', 'JJ'), ('fluid', 'NN')] fluid ['fluid', 'preservation by freezing'] ['fluid:CandidateTerm_OtherOntology_76', 'preservation by freezing:FOODON_03470136'] ['fluid:CandidateTerm_OtherOntology_76', 'preservation by freezing:FOODON_03470136'] 2 Component Match ['Abbreviation-Acronym Treatment', 'Synonym Usage'] ['froz'] Component1-> fluid:CandidateTerm_OtherOntology_76, Component2-> preservation by freezing:FOODON_03470136 | ||
small_simple5 fld apple fluid apple [('fluid', 'NN'), ('apple', 'NN')] fluid apple ['apple food product', 'fluid'] ['apple food product:FOODON_00001611', 'fluid:CandidateTerm_OtherOntology_76'] ['apple food product:FOODON_00001611', 'fluid:CandidateTerm_OtherOntology_76'] 2 Component Match ['Abbreviation-Acronym Treatment', 'Suffix Addition- food product to the Input'] [] Component1-> apple food product:FOODON_00001611, Component2-> fluid:CandidateTerm_OtherOntology_76 | ||
small_simple6 csf cerebrospinal fluid [('cerebrospinal', 'JJ'), ('fluid', 'NN')] fluid ['cerebrospinal fluid'] ['cerebrospinal fluid:ENVO_02000029'] ['cerebrospinal fluid:ENVO_02000029'] Full Term Match ['A Direct Match with Cleaned Sample', 'Change Case and Abbreviation-Acronym Treatment'] | ||
small_simple7 csf f cerebrospinal fluid fahrenheit [('cerebrospinal', 'JJ'), ('fluid', 'NN'), ('fahrenheit', 'NN')] fluid fahrenheit ['cerebrospinal', 'cerebrospinal fluid', 'fluid'] ['cerebrospinal fluid:ENVO_02000029', 'cerebrospinal:Quality-BodyRelated', 'fluid:CandidateTerm_OtherOntology_76'] ['cerebrospinal fluid:ENVO_02000029'] 1 Component Match ['Change Case and Abbreviation-Acronym Treatment', 'Using Semantic Tagging Resources'] ['f'] Component1-> cerebrospinal fluid:ENVO_02000029 | ||
small_simple8 Pie csf pie cerebrospinal fluid [('pie', 'JJ'), ('cerebrospinal', 'JJ'), ('fluid', 'NN')] fluid ['cerebrospinal', 'cerebrospinal fluid', 'fluid', 'pie'] ['cerebrospinal fluid:ENVO_02000029', 'cerebrospinal:Quality-BodyRelated', 'fluid:CandidateTerm_OtherOntology_76', 'pie:CandidateTerm_FoodOn_839'] ['cerebrospinal fluid:ENVO_02000029', 'pie:CandidateTerm_FoodOn_839'] 2 Component Match ['Change Case and Abbreviation-Acronym Treatment', 'Using Semantic Tagging Resources'] [] Component1-> cerebrospinal fluid:ENVO_02000029, Component2-> pie:CandidateTerm_FoodOn_839 | ||
small_simple9 csf fld cerebrospinal fluid fluid [('cerebrospinal', 'JJ'), ('fluid', 'NN'), ('fluid', 'NN')] fluid fluid ['cerebrospinal', 'cerebrospinal fluid', 'fluid'] ['cerebrospinal fluid:ENVO_02000029', 'cerebrospinal:Quality-BodyRelated', 'fluid:CandidateTerm_OtherOntology_76'] ['cerebrospinal fluid:ENVO_02000029'] 1 Component Match ['Abbreviation-Acronym Treatment', 'Change Case and Abbreviation-Acronym Treatment', 'Using Semantic Tagging Resources'] [] Component1-> cerebrospinal fluid:ENVO_02000029 |
Oops, something went wrong.