Skip to content

Commit

Permalink
add basic documentation, bless generated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirtia committed Apr 4, 2023
1 parent d95bd4d commit 79a653a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/sumy_summarizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,17 @@


class PDFSummarizer(PDFToTextConverter):
"""
A class that can be used to summarize text extracted from a PDF file.
Inherits from PDFToTextConverter, which extracts the text from the PDF file.
Attributes:
- LANGUAGE (str): The language to use for summarization. Default is "english".
- NUM_SENTENCES (int): The number of sentences to include in the summary. Default is 20.
LANGUAGE = "english"
NUM_SENTENCES = 20
"""

def __init__(self, filename) -> None:
super().__init__(filename)
Expand Down

0 comments on commit 79a653a

Please sign in to comment.