Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c8593e9

Browse files
[update]out_put_file_path
1 parent 5a71459 commit c8593e9

File tree

4 files changed

+23
-1
lines changed

4 files changed

+23
-1
lines changed

‎DocumentSummaryCreater/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Document-Summary-Creater
2+
A python script to
3+
4+
## Prerequisites
5+
##### **This script needs Python 3.***
6+
7+
pip install these libraries from requirements.txt
8+
* sumy
9+
* spacy
10+
* neologdn
11+
12+
and run the command to download some libraries
13+
14+
```bash
15+
$ python -m spacy download en_core_web_sm
16+
$ python -c "import nltk; nltk.download('punkt')"
17+
18+
```
19+
20+
## Usage:
21+
22+
Run main
Binary file not shown.
Binary file not shown.

‎DocumentSummaryCreater/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def main():
88

99
summary = summarize_sentences(sentences)
1010

11-
filepath_index = filepath.find('.')
11+
filepath_index = filepath.find('.txt')
1212
outputpath = filepath[:filepath_index]+'_summary.txt'
1313

1414
with open(outputpath, 'w') as w:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /