MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / extract_wordmap

Method extract_wordmap

src/table.py:794–795  ·  view source on GitHub ↗
(self, chars)

Source from the content-addressed store, hash-verified

792 yield (self.merge_chars(word_chars), word_chars)
793
794 def extract_wordmap(self, chars) -> WordMap:
795 return WordMap(list(self.iter_extract_tuples(chars)))
796
797 def extract_words(self, chars: list) -> list:
798 words = list(word for word, word_chars in self.iter_extract_tuples(chars))

Callers 1

chars_to_textmapFunction · 0.95

Calls 2

iter_extract_tuplesMethod · 0.95
WordMapClass · 0.85

Tested by

no test coverage detected