Created
April 21, 2018 22:22
-
-
Save AgustinParmisano/e396c1ec6dd8c6f7772193c1af926b7a to your computer and use it in GitHub Desktop.
un pequeño ejemplo de lambda con pattern
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
#!/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