<reponame>lorainemg/information-retrieval-system
from typing import List


class Document:
    def __init__(self, id, tokens, title="", summary=""):
        self.id = id
        self.tokens: List[str] = tokens
        self.title = title
        self.summary = summary

    def __str__(self):
        return f'{self.id}: {self.summary}'

    def __repr__(self):
        return str(self)

from typing import List


class Document:
    def __init__(self, id, tokens, title="", summary=""):
        self.id = id
        self.tokens: List[str] = tokens
        self.title = title
        self.summary = summary

    def __str__(self):
        return f'{self.id}: {self.summary}'

    def __repr__(self):
        return str(self)