Represents a document with its title and text.
| 21 | |
| 22 | @dataclasses.dataclass(frozen=True) |
| 23 | class 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 | |
| 31 | def read_documents(filepath, limit=None): |
no outgoing calls
no test coverage detected
searching dependent graphs…