mirror of
https://github.com/NLPatVCU/medaCy.git
synced 2026-04-03 08:18:55 -06:00
_restore_from_ascii() method in metamap.py throws "TypeError: list indices must be integers not strings" when dealing with a converted document. #120
Labels
No labels
High Priority
High Priority
High Priority
High Priority
Requires Code Refactoring
Requires Code Refactoring
Requires Code Refactoring
Requires Code Refactoring
Requires Code Refactoring
Requires Code Refactoring
Requires Code Refactoring
Requires Code Refactoring
Requires Code Refactoring
Requires Code Refactoring
Requires ML Background
Requires ML Background
Requires ML Background
bug
bug
bug
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github/medaCy#120
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @CoreySutphin on 2/18/2019
Description
If a non-ascii character is actually converted, when the program goes to restore the non-ascii character in the
_restore_from_ascii_method inmetamap.py, it throws a TypeError. The offending line isfor mapping in metamap_dict['metamap']['MMOs']['MMO']['Utterances']['Utterance']['Phrases']['Phrase']['Mappings']['Mapping']:.Steps/Code to Reproduce
Include a character such as л in your document and attempt to metamap. The error will be thrown when it attempts to restore the document back.
Expected Results
Text has non-ascii characters again and the character spans in the metamap dictionary are updated to reflect the restoration.
Actual Results
Error thrown.
Versions
Linux-4.15.0-43-generic-x86_64-with-Ubuntu-16.04-xenial
Python 3.5.2 (default, Nov 12 2018, 13:43:14)
medacy 0.0.8