Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why I get different scores use the same code? #51

Open
sherry6247 opened this issue Oct 18, 2020 · 0 comments
Open

Why I get different scores use the same code? #51

sherry6247 opened this issue Oct 18, 2020 · 0 comments

Comments

@sherry6247
Copy link

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:
image
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')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant