vgel/summarize.py

How to summarize the plain text

Opened this issue · 7 comments

i need to summarize the plain text which is saved in my local desk as text file. i think there is changes to be required. Please help if anyone knows.

vgel commented

You'll need to write a bit of code to load the plain text with open(...).read() and feed it into the library.

I tried feeding a text file to the library..but it is just returning the same text again..

I used the below code..

f = open('C:/Users/test.txt')
file= f.read()
import summarize
print(summarize.summarize_text(file))

Any updates on this error .. I am also facing the same issue

vgel commented

What's the text file contents?

vgel commented