MCPcopy Create free account
hub / github.com/google-research/language / Document

Class Document

language/quest/common/document_utils.py:23–28  ·  view source on GitHub ↗

Represents a document with its title and text.

Source from the content-addressed store, hash-verified

21
22@dataclasses.dataclass(frozen=True)
23class Document:
24 """Represents a document with its title and text."""
25 # Document title (should be unique in corpus).
26 title: str
27 # Document text.
28 text: str
29
30
31def read_documents(filepath, limit=None):

Callers 1

read_documentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…