Oct-05-2023, 09:26 PM
(This post was last modified: Oct-06-2023, 03:42 AM by Gribouillis.)
So I am new here.... I wrote a code in pycharm that summarizes articles online. This is the code below: it works fine. what about if I want to summarize an article that is stored in a word document on my laptop? can somebody help me with the code? Again I am using Anaconda prompt and pycharm
import tkinter as tk import nltk from textblob import TextBlob from newspaper import Article url = "https://www.news.com/index.html" article = Article(url) article.download() article.parse() article.nlp() print(f'Title: {article.title}') print(f'Authors: {article.authors}') print(f'Publication Date: {article.publish_date}') print(f'Summary: {article.summary}')
Gribouillis write Oct-06-2023, 03:42 AM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.