You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use the same code you report in the README section, like that:
`meatapath = "/HardDisk/lsc_part/app/MetaMap/public_mm_lite/"
mm = MetaMapLite.get_instance(meatapath)
sents = ['Heart Attack', 'John had a huge heart attack']
concepts, error = mm.extract_concepts(sents,[1,2])
for concept in concepts:
print(concept)
print(concept.trigger, concept.score)`
but I get the result like:
the score and tree_codes different from you result :
Concept(index='1', mm='MM', score='14.64', preferred_name='Myocardial Infarction', cui='C0027051', semtypes='[dsyn]', trigger='["Heart attack"-tx-1-"Heart Attack"]', location='TX', pos_info='1:12', tree_codes='C14.280.647.500;C14.907.585.500')
Concept(index='2', mm='MM', score='13.22', preferred_name='Myocardial Infarction', cui='C0027051', semtypes='[dsyn]', trigger='["Heart attack"-tx-1-"heart attack"]', location='TX', pos_info='17:12', tree_codes='C14.280.647.500;C14.907.585.500')
The text was updated successfully, but these errors were encountered:
I use the same code you report in the README section, like that:
`meatapath = "/HardDisk/lsc_part/app/MetaMap/public_mm_lite/"
mm = MetaMapLite.get_instance(meatapath)
sents = ['Heart Attack', 'John had a huge heart attack']
concepts, error = mm.extract_concepts(sents,[1,2])
for concept in concepts:
print(concept)
print(concept.trigger, concept.score)`
but I get the result like:
the score and tree_codes different from you result :
Concept(index='1', mm='MM', score='14.64', preferred_name='Myocardial Infarction', cui='C0027051', semtypes='[dsyn]', trigger='["Heart attack"-tx-1-"Heart Attack"]', location='TX', pos_info='1:12', tree_codes='C14.280.647.500;C14.907.585.500')
Concept(index='2', mm='MM', score='13.22', preferred_name='Myocardial Infarction', cui='C0027051', semtypes='[dsyn]', trigger='["Heart attack"-tx-1-"heart attack"]', location='TX', pos_info='17:12', tree_codes='C14.280.647.500;C14.907.585.500')
The text was updated successfully, but these errors were encountered: