| import herramientas | |
| import tools.ine_actual as ine_actual_tools | |
| import time | |
| def vigencia(textos_extraidos_limpios): | |
| conceptos_busqueda = [ | |
| {'preferida': 'vigencia', 'alternativas': ['igencia']}, | |
| ] | |
| indice, textos_extraidos_corregidos = herramientas.buscaIndexMultiplesPalabras(textos_extraidos_limpios, conceptos_busqueda) | |
| textos_extraidos_limpios = textos_extraidos_corregidos | |
| if indice is None: | |
| return None | |
| print("El índice de vigencia es: ", indice) | |
| vigencia = ine_actual_tools.obtener_vigencia(indice, textos_extraidos_limpios) | |
| if vigencia is not None: | |
| return vigencia | |
| else: | |
| return None |