Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mooc-rr
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
1affb6a270b94ae1aa2914210661b070
mooc-rr
Commits
ea7dd593
Commit
ea7dd593
authored
Apr 21, 2020
by
1affb6a270b94ae1aa2914210661b070
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
premières reflexions
parent
0d6a54f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3226 additions
and
3 deletions
+3226
-3
exercice.ipynb
module3/exo3/exercice.ipynb
+56
-3
moliere_avare.txt
module3/exo3/moliere_avare.txt
+3170
-0
No files found.
module3/exo3/exercice.ipynb
View file @
ea7dd593
{
{
"cells": [],
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Sujet 5: Analyse des dialogues dans l'Avare de Molière"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"J'ai choisi de partir du format markdown."
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"import urllib.request \n",
"data_url = \"http://dramacode.github.io/markdown/moliere_avare.txt\"\n",
"data_file = \"moliere_avare.txt\"\n",
"if not os.path.exists(data_file):\n",
" urllib.request.urlretrieve(data_url, data_file)\n",
"text=open(data_file,'r')\n",
"#text.readlines() "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Je voudrais faire un dataframe contenant pour chaque scène les interventions de chaque personnage. "
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"metadata": {
"kernelspec": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3",
...
@@ -16,10 +70,9 @@
...
@@ -16,10 +70,9 @@
"name": "python",
"name": "python",
"nbconvert_exporter": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"pygments_lexer": "ipython3",
"version": "3.6.
3
"
"version": "3.6.
4
"
}
}
},
},
"nbformat": 4,
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 2
}
}
module3/exo3/moliere_avare.txt
0 → 100644
View file @
ea7dd593
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment