code: def from_text(cls, text, mapping='mapping'):
          
          graphemes = Counter(grapheme_pattern.findall(text))
          specs = [
              OrderedDict([
                  (cls.GRAPHEME_COL, grapheme),
                  ('frequency', frequency),
                  (mapping, grapheme)])
              for grapheme, frequency in graphemes.most_common()]
          return cls(*specs)
docs: Create a Profile instance from the Unicode graphemes found in `text`.
  
          Parameters
          ----------
          text
          mapping
  
          Returns
          -------
          A Profile instance.