code: def from_dict(cls, d):
          
          return cls(
              d['id'],
              d['start'],
              d['end'],
              Lnk.charspan(d['from'], d['to']) if 'from' in d else None,
              # d.get('paths', [1]),
              form=d['form'],
              surface=d.get('surface'),
              # ipos=
              # lrules=
              pos=zip(d.get('tags', []), d.get('probabilities', []))
          )
docs: Decode from a dictionary as from :meth:`to_dict`.