Skip to content

Instantly share code, notes, and snippets.

@cmstewart
Created August 11, 2015 14:43
Show Gist options
  • Save cmstewart/20a315804261e9d1b0c8 to your computer and use it in GitHub Desktop.
Save cmstewart/20a315804261e9d1b0c8 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"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