Skip to content

Conversation

anisa-hawes
Copy link
Contributor

@anisa-hawes anisa-hawes commented Feb 3, 2023

I am updating /en/lessons/introduction-to-stylometry-with-python:

  • Reinstate caution re: Python v3.6 or higher at line 56
  • Adjust codewith open(f'data/federalist_{filename}.txt', 'r') as f: at line 156
  • Add the line nltk.download('punkt') to follow import nltk at line 194
  • Remove indentations which preceded token length code at lines 212-214

As well as /fr/lecons/introduction-a-la-stylometrie-avec-python:

  • Reinstate caution re: Python v3.6 or higher at line 61
  • Adjust codewith open(f'data/federalist_{nom_fichier}.txt', 'r') as f: at line 162
  • Add the line nltk.download('punkt') to follow import nltk at line 194
  • Remove indentations which preceded token length code at lines 220-222

And /pt/licoes/introducao-estilometria-python:

  • Adjust code with open(f'dados/pg{id_ficheiro}.txt', encoding='utf-8') as f: to with open(f'dados/federalist_{id_ficheiro}.txt', 'r', encoding='utf-8') as f: at lines 59 and 149
  • Add the line nltk.download('punkt') to follow import nltk at line 194
  • Remove indentations which preceded token length code at lines 213-215

Closes #2483

Checklist

  • Assign yourself in the "Assignees" menu
  • Add the appropriate "Label"
  • If this PR closes an Issue, add the phrase Closes #ISSUENUMBER to your summary above
  • Ensure the status checks pass: if you have difficulty fixing build errors, please contact our Publishing Assistant @anisa-hawes
  • Check the Netlify Preview: navigate to netlify/ph-preview/deploy-preview and click 'details' (at right)
  • Assign at least one individual or team to "Reviewers"
    • if the text needs to be translated, please follow the translation request guidelines, then assign the relevant language team(s) as "Reviewers" and tag both the team as well as the managing editor in your PR.
    • I'm reinstating FR text that was previously published. No change to text in PT

- Reinstate caution re: Python v3.6 or higher at line 56
- Adjust code`with open(f'data/federalist_{filename}.txt', 'r') as f:` at line 156
- Add the line `nltk.download('punkt')` to follow `import nltk` at line 194
- Remove indentations which preceded token length code at lines 212-214
- Reinstate caution re: Python v3.6 or higher at line 61 
- Adjust code`with open(f'data/federalist_{nom_fichier}.txt', 'r') as f:` at line 162
- Add the line `nltk.download('punkt')` to follow `import nltk` at line 194
- Remove indentations which preceded token length code at lines 220-222
- Adjust code `with open(f'dados/pg{id_ficheiro}.txt', encoding='utf-8') as f:` to `with open(f'dados/federalist_{id_ficheiro}.txt', 'r', encoding='utf-8') as f:` at lines 59 and 149
- Add the line `nltk.download('punkt')` to follow `import nltk` at line 194
- Remove indentations which preceded token length code at lines 213-215
@anisa-hawes
Copy link
Contributor Author

Hmmm... strange appearance of a line-break in /en line 56, but I have double-checked this in the markdown and there are no extra or errant spaces...

@anisa-hawes anisa-hawes requested a review from hawc2 February 3, 2023 18:54
@anisa-hawes anisa-hawes merged commit 081ba51 into gh-pages Feb 10, 2023
@anisa-hawes anisa-hawes deleted the Issue-2483 branch February 10, 2023 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

assets still on submissions repo - stylometry lesson

2 participants