Skip to content

Instantly share code, notes, and snippets.

@AgustinParmisano
Created April 21, 2018 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AgustinParmisano/e396c1ec6dd8c6f7772193c1af926b7a to your computer and use it in GitHub Desktop.
Save AgustinParmisano/e396c1ec6dd8c6f7772193c1af926b7a to your computer and use it in GitHub Desktop.
un pequeño ejemplo de lambda con pattern
#!/usr/bin/python3
import pattern.es
verbosInfinitivos = input("Ingrese una frase: ")
infs = map(lambda v : pattern.es.conjugate(v,'inf'), verbosInfinitivos.split(" "))
print(list(infs))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment