Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starter Code for the Lesson 11: Text Learning Mini-Project #334

Open
reemaljaber opened this issue Nov 6, 2021 · 0 comments
Open

Starter Code for the Lesson 11: Text Learning Mini-Project #334

reemaljaber opened this issue Nov 6, 2021 · 0 comments

Comments

@reemaljaber
Copy link

reemaljaber commented Nov 6, 2021

.\utils\maildir/bailey-s/deleted_items/101.

AttributeError Traceback (most recent call last)
in
22
23 # use parse_out_text to extract the text from the opened email
---> 24 text = parse_out_text(email)
25 # use str.replace() to remove any instances of the words
26 # ["sara", "shackleton", "chris", "germani"]

~\OneDrive\Desktop\ud120-projects-py3-jupyter-master\ud120-projects-py3-jupyter-master\utils\parse_out_email_text.py in parse_out_text(f)
23 if len(content) > 1:
24 # remove punctuation
---> 25 text_string = content[1].translate(str.maketrans("", ""),string.punctuation)
26
27 # project part 2: comment out the line below

AttributeError: module 'string' has no attribute 'maketrans'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant