|
|
--- |
|
|
license: mit |
|
|
--- |
|
|
|
|
|
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 |
|
|
to load the models in your python script and perform text summarization tasks. |
|
|
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 |
|
|
them to the saved model in the required format. |
|
|
|
|
|
To summarize text, use this code: |
|
|
|
|
|
``` |
|
|
from extract_features import extract_features |
|
|
features = extract_features(Article_you_want_to_summarize) |
|
|
summarized_sentences = model.predict(features) |
|
|
``` |
|
|
The summarized_sentences is a list of sentences of your summary. |