-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathusage.py
22 lines (19 loc) · 979 Bytes
/
usage.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"""
NOTE: Здесь описываем базовое использование модуля (без прочих настроек)
"""
from summa.summarizer import summarize
example = """
Automatic summarization is the process of reducing a text document with a \
computer program in order to create a summary that retains the most important points \
of the original document. As the problem of information overload has grown, and as \
the quantity of data has increased, so has interest in automatic summarization. \
Technologies that can make a coherent summary take into account variables such as \
length, writing style and syntax. An example of the use of summarization technology \
is search engines such as Google. Document summarization is another.
"""
summarize(example)
"""
Automatic summarization is the process of reducing a text document with a computer
program in order to create a summary that retains the most important points of the
original document.
"""