Skip to content

Two small errors in the code #1

@sd39

Description

@sd39

Dear Chaim,

I noticed two small typos in the code. I am very new to python programming, so these may not be issues at all. However, I thought I would bring them to your notice.

p_tags = soup.find_all('p’)

The above didn't work for me. However, the following did:

p_tags = soup.find_all('p')

The below returns an error:

summary = summarize(article_text, ratio=0.3)

Problem is resolved if you replace 'article_text' with article.

Sierra

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions