code: def element_from_span(span: List[int],
                        span_type: str) -> Element:
      
      return Element(span_type,
                     [span[0].idx,
                      span[-1].idx + len(span[-1])],
                     ' '.join(map(str, span)))
docs: Return an Element from span (list of spacy toks)