class_docstr: DocProto implementation for internal use.
class_docstr_tok: ["DocProto","implementation","for","internal","use","."]
docstr: Create doc from list of words. The word boundaries (e.g. spaces) must remain kept.
docstr_tok: ["Create","doc","from","list","of","words",".","The","word","boundaries","(","e.g",".","spaces",")","must","remain","kept","."]
code: def from_words(cls, words: List[str]) -> "Doc":
      """Create doc from list of words. The word boundaries (e.g. spaces) must remain kept."""
      doc = cls("".join(words))
      tokens: List[Token] = []
      left = 0
      for w in words:
          right = left + len(w)
          tokens.append(Token(left, right, doc))
          left = right
      doc.tokens = tokens
      return doc
  
imports: from dataclasses import dataclass, field
  from typing import Any, Dict, Iterator, List, Optional, TypeVar
  from typing_extensions import Protocol, runtime_checkable
label_desc: Use image node_id 1 for calling the Doc obj's underlying member method code with example usage: obj.from_words(cls, words) and returns: doc