class documentation
class Document: (source)
Known subclasses: modules.document.ArxivDocument
, modules.document.RedditDocument
Constructor: Document(title, date, author, url, ...)
Class representing a document.
Method | __init__ |
Initialize a Document object. |
Method | __repr__ |
Return a string representation of the Document object. |
Method | __str__ |
Return a string representation of the Document object. |
Instance Variable | author |
Undocumented |
Instance Variable | date |
Undocumented |
Instance Variable | source |
Undocumented |
Instance Variable | text |
Undocumented |
Instance Variable | title |
Undocumented |
Instance Variable | url |
Undocumented |
def __init__(self, title:
str
, date: str
, author: str
, url: str
, source: str
, text: str
):
(source)
¶
overridden in
modules.document.ArxivDocument
, modules.document.RedditDocument
Initialize a Document object.
Args:
title (str): The title of the document. date (str): The date of the document. author (str): The author of the document. url (str): The URL of the document. text (str): The text of the document.
overridden in
modules.document.ArxivDocument
, modules.document.RedditDocument
Return a string representation of the Document object.