pymetamap
pymetamap copied to clipboard
Error Running Example
TypeError Traceback (most recent call last) in 1 sents = ['Heart Attack'] ----> 2 concepts,error = mm.extract_concepts(sents,[1]) 3 concepts
~/pyte/pymetamap/SubprocessBackend.py in extract_concepts(self, sentences, ids, composite_phrase, filename, file_format, allow_acronym_variants, word_sense_disambiguation, allow_large_n, strict_model, relaxed_model, allow_overmatches, allow_concept_gaps, term_processing, no_derivational_variants, derivational_variants, ignore_word_order, unique_acronym_variants, prefer_multiple_concepts, ignore_stop_phrases, compute_all_mappings, mm_data_version, exclude_sources, restrict_to_sources, restrict_to_sts, exclude_sts) 152 if ids is not None: 153 for identifier, sentence in zip(ids, sentences): --> 154 input_text += '{0!r}|{1!r}\n'.format(identifier, sentence).encode('utf8') 155 else: 156 for sentence in sentences:
TypeError: can only concatenate str (not "bytes") to str
I tried running the example and this is what I get