Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
This is an extractive text summarizer model trained on cnn_dailymail dataset. The trained model was saved as a joblib file, which can be used
|
| 6 |
+
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, follow these steps:
|
| 11 |
+
from extract_features import extract_features
|
| 12 |
+
features = extract_features(Article_you_want_to_summarize)
|
| 13 |
+
summarized_sentences = model.predict(features)
|
| 14 |
+
|
| 15 |
+
The summarized_sentences is a list of sentences of your summary.
|