LAS LISTAS 2 Y LAS CORPORAS DAY 12 - 2/6/15 SPAN 4350 Cultura computacional en español Harry Howard Tulane University.

Slides:



Advertisements
Presentaciones similares
Mr. Redaelli OnlineTaco.com. To Have - Tener Yo tengo – I have Tú tienes – You have (Informal) Usted tiene – You have (Formal) El tiene – He has Ella.
Advertisements

¿ Que día es hoy? Hoy es lunes ¿ Cual es la fecha de hoy? Hoy es el 26 de septiembre ¿ Cual es tu clase favorita? Mi clase favorita es… BELL RINGER.
¿De dónde eres tú?.
La computación con el lenguaje 2 Día 3, 17 ene 14 Cultura computacional en español SPAN 4350 Harry Howard Tulane University.
El control de la computación 2 día16, 20-feb-15 SPAN 4350 Cultura computacional en español Harry Howard Tulane University.
LAS EXPRESSIONS REGULARES 2 DAY 7 - 1/28/15 SPAN 4350 Cultura computacional en español Harry Howard Tulane University.
LAS LISTAS DAY /6/15 SPAN 4350 Cultura computacional en español Harry Howard Tulane University.
Los días de la semana Days of the week.
Texto de las páginas web día19, 27-feb-15 SPAN 4350 Cultura computacional en español Harry Howard Tulane University.
PRUEBA DE UBICACION PARA HISPANOHABLANTES
Hoy: Para Empezar Traducen: 1) I need many things! 2) We want some paper. Translate, then make them plural (use unos or unas): 3) colored pencil 4) pen.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco PublicPresentation_ID 1 Packet Tracer en Español.
Español 1 13 de marzo de La Campana  Forma parejas:  1. Quiero ir A. She likes to go  2. Le gusta ir B. They want to go to the beach  3. Vamos.
El control de la computación 3 día17, 23-feb-15 SPAN 4350 Cultura computacional en español Harry Howard Tulane University.
Scripts y funciones día18, 25-feb-15 SPAN 4350 Cultura computacional en español Harry Howard Tulane University.
LAS EXPRESSIONS REGULARES 3 DAY 8 - 1/30/15 SPAN 4350 Cultura computacional en español Harry Howard Tulane University.
¡Hola! ¡Buenos días! ¡Bienvenidos! Please find your class number on the class paper that is taped to the board and then look for your seat.
El 3 de febrero, 2015 Change the following sentence to the present progressive tense (estar + -ando/-iendo). El perro corre. El perro está corriendo.
Using Gustar Avancemos Level 1. Help me fill in the grid with Spanish pronouns.. Yo Tú Él, Ella, Usted Nosotros/as Ellos, Ellas, Ustedes X.
-AR Verbs In Spanish, there are three classes (or conjugations) of verbs: those that end in –AR, those that end in –ER, and those that end in –IR. This.
How to Conjugate Regular –AR Verbs in the Present Tense.
VERBOS REFLEXIVOS Retrieved from: elmundodebirch.wikispaces.com.
How to Conjugate Regular –AR – Er - IR Verbs in the Present Tense.
WRITE DOWN THE FREQUENCY WORDS. LEER- Read the text and answer true or false VERDAD (V) OR FALSO (X)
Hoy es martes. La fecha es el 3 de diciembre LA PREGUNTA: Describe tu dormitorio con 5 adjetivos. La tarea: Estudien el vocabulario nuevo de p. 272 y 273.
El calentamiento ORAL  Hoy, vamos a hablar sobre las ocasiones especiales.  ¿Cuales son algunas ocasiones especiales en inglés?  Por ejemplo – a birthday.
UNICODE DAY /4/15 SPAN 4350 Cultura computacional en español Harry Howard Tulane University.
Create a PowerPoint illustrating the weather in a Spanish-speaking country. Make two slides only Sign up with the teacher for your country. They cannot.
HAZLO AHORA DAY # 43 Pick up handout Please have your homework out- I am going to come around and collect it Copy, Translate in english and then answer.
Español 1 18 y 19 de septiembre de  Escribe los meses que combinan con las estaciónes. (Write the months that match with the seasons.)  El otoño-
Agenda del día 1.(~10 minutos?) Anuncios, sillas asignadas, (repartir las copias de Más práctica en algunas clases), etc. 2.(10-15 minutos) La práctica.
MONDAY – INTRO PRESENTATIONS TUESDAY – INTRO PRESENTATIONS + NUMBERS + ALPHABET WEDNESDAY - NAMES?
ALC 92 Martes el 8 de febrero. objetivo Yo puedo saber la definición de un objetivo directo, cuales son los pronombres, y como se usan. Evaluation- send.
¿Qué haces en la escuela? Question words, objects, yo-go’s.
La pregunta: Marquen los países con una flecha Saquen el paquete de los mapas.
Objetivo: How do we describe ourselves? Hagan Ahora: In your notebooks, conjugate ser into all six forms. When you receive your workbook, write your first.
SPONGE: To begin the day, re-join your groups and continue working on the skits you began last Thursday (jueves en espanol). You will only have minutes.
Capítulo 3 Las Compras para la Escuela Warm-up Open your binder and write title and date List in Spanish the supplies that are in this picture. Use your.
Do Now – 2 de diciembre 2014  Escribe una oracion para tres de los cuatro fotos que describe la comida. ¿Es saludable? ¿Es malo para ti? ¿Cuales alimentos.
¡Hola clase! Take notes and answer questions on all upcoming slides. (except for the Tip of the Day slide) ¡Nos vemos el martes!
Octubre 7, Español 2: Cap. 2B pag. 110 Q: ¿Cuántos estudiantes hay en el salón de clases? ¿Dónde están? “Hay” means there is/ there are.
Hoy es lunes, el nueve de septiembre
2.1—Talking about what you want & need.. Subject Pronouns You’ve already learned the subject pronouns that can be used for I and You. Now you will learn.
Objetivo: to identify phrases that express someone must do something. Ahora: List 3 adverbs and where are they placed in a sentence.
Español II Segundo tema.  You will be able to tell about what you do everyday in your daily routine.  You will be able to identify items you use to.
LECCIÓN 2: SEGUNDA PARTE Today you will learn: To discusses subjects and classes at school Today you will review: How to tell time in Spanish.
Telling Time Notes Escribe Las notas!. Agenda Students you are required to fill in the blanks as your notes! Save ppt in my documents Save ppt.
Objetivo: Ask and tell what time it is. Talk and write about my classes at school. Agenda: 1.HacerAhora: El Tiempo 2.? Importantes 3.Brilla 4.Apuntes 5.Mi.
Review- Conjugation SER Yo soy Tú eres Él/ ella/ usted es Ustedes son ESTAR Yo estoy Tú estás Él/ ella/ usted está
Preparacion Hoy es viernes el 4 de diciembre. Today is Friday, December 4. DO NOW: In preparation for some exercises in class do the following with the.
Vamonos Sit down and take out paper to start taking your notes!
ECOM-6030 PASOS PARA LA INSTALACIÓN DE EASYPHP Prof. Nelliud D. Torres © - Derechos Reservados.
Page 1 Clase de español I Day 3 Señora Ramírez Salon F107 phone: Agenda de hoy.
How to modify a noun with another noun. How do we do that? De.
PRESENT PERFECT Área Académica: INGENERÍA MECÁNICA Profesor(a): MA. E. GUADALUPE ISLAS LÓPEZ Periodo: JULIO-DICIEMBRE 2015.
INTRO. TO LAW – MR. STILLMAN 12/2/15 AIM: How do we construct a brilliant BILL OF RIGHTS PROJECT? DO NOW: Which Amendment will you choose for your project?
 Hay doce meses en cada año.  Months in Spanish are not capitalized.
Essential question: How do I say what I like and what interests/bores me?
Escriban en sus Apuntes In your apuntes write down three sentences in the ‘yo’ form for the following verbs in the preterite tense: – almorzar – buscar.
INTRO. TO LAW – MR. STILLMAN 12/1/15 AIM: How do we construct our BILL OF RIGHTS PROJECT? DO NOW: Look at the handout – which amendment says we have the.
Pretérito e imperfecto Día feb 2016 Gramática española SPAN 4351 Harry Howard Tulane University.
Global Warming Project and Presentation. Save this PowerPoint to your S- User Then, answer the following questions about Global Warming. (Luego contesta.
Sra. Waters NHS español II. Unit Objectives By End of Unit, in Spanish, students will be able to: – Greet people & introduce themselves – Ask & answer.
100 Book Challenge Desafío de leer 100 libros. Cada niño tendrán: Una bolsa de libros Una carpeta 2 libros para leer cada noche Un informe de lectura.
Esponja 1.Nosotros _____ despertamos temprano. 2.Tu _____levantas tarde. 3.Yo _____ me lavo los dientes todos los dias. 4.Por lo general, Chuy no _____.
1.12 Repaso 2 de septiembre.
Español 2 3 de marzo de 2017.
Close read writing day Hispanic nicknames.
Español 1. Semana 1 Hoy es viernes, el 11 de enero de Libro p
uno dos tres cuatro cinco
Transcripción de la presentación:

LAS LISTAS 2 Y LAS CORPORAS DAY /6/15 SPAN 4350 Cultura computacional en español Harry Howard Tulane University

Organización del curso 6-feb-2015CultCompES, Prof. Howard, Tulane University 2   1. cultcomp 2. python 3. cadenas 4. unicode 5. exreg 6. listas 7. nltk_archives

Una lista es una secuencia de objetos entre corchetes. Repaso 6-feb CultCompES, Prof. Howard, Tulane University

La mayoría de los métodos de las cadenas funcionan con las listas 1. >>> len(L) 2. >>> sorted(L) 3. >>> len(sorted(L)) 4. >>> set(L) 5. >>> sorted(set(L)) 6. >>> len(set(L)) 7. >>> L+'!' 8. >>> len(L+'!') 9. >>> L*2 10. >>> len(L*2) 11. >>> L.count('mango') 12. >>> L.index('mango') 13. >>> L.rindex('mango') 14. >>> L[2:] 15. >>> L[:2] 16. >>> L[-2:] 17. >>> L[:-2] 18. >>> L[2:-2] 19. >>> L[-2:2] 20. >>> L[:] 21. >>> L[:-1]+['!'] 6-feb-2015CultCompES, Prof. Howard, Tulane University 4

split() vs. join() 6-feb-2015CultCompES, Prof. Howard, Tulane University 5

§6. Las listas 6-feb CultCompES, Prof. Howard, Tulane University

¿Qué métodos se permiten con una lista pero no con una cadena? 1. >>> L1 = ['Miguel', 'Cervantes'] 2. >>> L1.append('de Saavedra') 3. >>> del L1[2] 4. >>> L1.insert(1, 'de Saavedra') 5. >>> L1.remove('de Saavedra') 6. >>> L1[0] = 'Miguelito' 7. >>> L1.append('de Saavedra') 8. >>> L1.pop(2) 9. >>> L1.reverse() 6-feb-2015CultCompES, Prof. Howard, Tulane University 7

ltk_archives.html 7. NLTK and Internet corpora 6-feb CultCompES, Prof. Howard, Tulane University

Configurar el directorio de trabajo global  Crea una carpeta "pyScripts" en tu carpeta de documentos.  En Spyder > Preferences > Global Working directory:  "At start-up, the global working directory is … the following directory (navega a "pyScripts" y pínchala)  "Files are opened from: … the global working directory.  "Files are created in: … the global working directory. 6-feb-2015CultCompES, Prof. Howard, Tulane University 9

How to navigate folders with os 1. >>> import os 2. >>> os.getcwd() 3. '/Users/harryhow/Documents/pyScripts' 4. # if the path is not to your pyScripts folder, then change it: 5. >>> os.chdir('/Users/{your_user_name}/Documents/pyScripts/') 6. >>> os.getcwd() 7. '/Users/{your_user_name}/Documents/pyScripts/' 13-Oct-2014NLP, Prof. Howard, Tulane University 10

Project Gutenberg 13-Oct-2014NLP, Prof. Howard, Tulane University 11

How to download a file with urllib and convert it to a string with read() 1. >>> from urllib import urlopen 2. >>> url = ' txt' 3. >>> download = urlopen(url) 4. >>> downloadString = download.read() 5. >>> type(downloadString) 6. >>> len(downloadString) # 35739? 7. >>> downloadString[:50] 13-Oct-2014NLP, Prof. Howard, Tulane University 12

How to save a file to your drive with open(), write(), and close()  # it is assumed that Python is looking at your pyScripts folder  >>> tempFile = open('Cervantes.txt','w')  >>> tempFile.write(downloadString.encode('utf8'))  >>> tempFile.close()  # import os if you haven't already done so  >>> os.listdir('.') 13-Oct-2014NLP, Prof. Howard, Tulane University 13

How to look at a file with open() and read() 1. >>> tempFile = open('Cervantes.txt','r') 2. >>> text = tempFile.read() 3. >>> type(text) 4. >>> len(text) 5. >>> text[:50] 13-Oct-2014NLP, Prof. Howard, Tulane University 14

How to slice away what you don’t need 1. >>> text.index('*** START OF THIS PROJECT GUTENBERG EBOOK') >>> lineIndex = text.index('*** START OF THIS PROJECT GUTENBERG EBOOK') 4. >>> startIndex = text.index('\n',lineIndex) 5. >>> text[:startIndex] 6. >>> text.index('*** END OF THIS PROJECT GUTENBERG EBOOK') 7. >>> endIndex = text.index('*** END OF THIS PROJECT GUTENBERG EBOOK') 8. >>> story = text[startIndex:endIndex] 13-Oct-2014NLP, Prof. Howard, Tulane University 15

Now save it as “Wub.txt” 1. # it is assumed that Python is looking at your pyScripts folder 2. >>> tempFile = open('Cervantes.txt','w') 3. >>> tempFile.write(story.encode('utf8')) 4. >>> tempFile.close() 13-Oct-2014NLP, Prof. Howard, Tulane University 16

P3 sobre unicode y listas §7. Corpora El próximo día 6-feb-2015CultCompES, Prof. Howard, Tulane University 17