Allow metamap.py to also cache results when metamapping just a string of text #185

Open
opened 2025-10-14 16:30:28 -06:00 by navan · 0 comments
Owner

Originally created by @CoreySutphin on 11/29/2018

Line 80 in metamap.py

    def map_text(self, text, max_prune_depth=10):
        #TODO add caching here as in map_file
        metamap_dict = self._run_metamap('--XMLf --blanklines 0 --silent --prune %i' % max_prune_depth, text)
        return metamap_dict
*Originally created by @CoreySutphin on 11/29/2018* Line 80 in metamap.py ```python def map_text(self, text, max_prune_depth=10): #TODO add caching here as in map_file metamap_dict = self._run_metamap('--XMLf --blanklines 0 --silent --prune %i' % max_prune_depth, text) return metamap_dict ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/medaCy#185
No description provided.