Update README.md
Browse files
README.md
CHANGED
|
@@ -7,12 +7,11 @@ to load the models in your python script and perform text summarization tasks.
|
|
| 7 |
This model is to be used in conjunction with the extract_features.py module. This module has a function that extracts the features and feed
|
| 8 |
them to the saved model in the required format.
|
| 9 |
|
| 10 |
-
To summarize text,
|
| 11 |
|
|
|
|
| 12 |
from extract_features import extract_features
|
| 13 |
-
|
| 14 |
features = extract_features(Article_you_want_to_summarize)
|
| 15 |
-
|
| 16 |
summarized_sentences = model.predict(features)
|
| 17 |
-
|
| 18 |
The summarized_sentences is a list of sentences of your summary.
|
|
|
|
| 7 |
This model is to be used in conjunction with the extract_features.py module. This module has a function that extracts the features and feed
|
| 8 |
them to the saved model in the required format.
|
| 9 |
|
| 10 |
+
To summarize text, use this code:
|
| 11 |
|
| 12 |
+
```
|
| 13 |
from extract_features import extract_features
|
|
|
|
| 14 |
features = extract_features(Article_you_want_to_summarize)
|
|
|
|
| 15 |
summarized_sentences = model.predict(features)
|
| 16 |
+
```
|
| 17 |
The summarized_sentences is a list of sentences of your summary.
|