Created
August 11, 2015 14:43
-
-
Save cmstewart/20a315804261e9d1b0c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:113c29c670a2103531807ee8730a36f19bc2a8a503f530f29896f6d5873d176c" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": [ | |
"# Introducci\u00f3n \n", | |
"\n", | |
"\"\"\"Este proyecto se trata de un trabajo de corpus sobre las diferencias ling\u00fc\u00edsticas entre hablantes nativos y hablantes de segunda lengua\n", | |
"(y luego hablantes de herencia...)\"\"\"\n", | |
"\n", | |
"\n", | |
"## Adquisici\u00f3n de los dados para los hablantes nativos\n", | |
"import requests\n", | |
"import zipfile\n", | |
"import StringIO\n", | |
"\n", | |
"zip_file_url = 'http://lenguajeacademico.info/proyecto/corpus_CLAE.zip'\n", | |
"r = requests.get(zip_file_url)\n", | |
"z = zipfile.ZipFile(StringIO.StringIO(r.content))\n", | |
"z.extractall()\n", | |
"\n", | |
"%cd CLAE/\n", | |
"%ls" | |
], | |
"language": "python", | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"stream": "stdout", | |
"text": [ | |
"[Errno 2] No such file or directory: 'CLAE/'\n", | |
"/Users/christopherstewart/Desktop/sp_heritage/2/corpus_CLAE/corpus_CLAE/L1/corpus_CLAE/corpus_CLAE/corpus_CLAE\n", | |
"\u001b[34mL1\u001b[m\u001b[m/ \u001b[34mL2\u001b[m\u001b[m/ \u001b[34m__MACOSX\u001b[m\u001b[m/ \u001b[34mcorpus_CLAE\u001b[m\u001b[m/\r\n" | |
] | |
} | |
], | |
"prompt_number": 20 | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": [ | |
"%pwd" | |
], | |
"language": "python", | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"metadata": {}, | |
"output_type": "pyout", | |
"prompt_number": 21, | |
"text": [ | |
"u'/Users/christopherstewart/.Trash/corpus_CLAE/L1/corpus_CLAE/corpus_CLAE/corpus_CLAE'" | |
] | |
} | |
], | |
"prompt_number": 21 | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": [], | |
"language": "python", | |
"metadata": {}, | |
"outputs": [] | |
} | |
], | |
"metadata": {} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment