Spaces:
Runtime error
Runtime error
added another dictionary
Browse files- app.py +2 -1
- diccionario.csv +0 -0
app.py
CHANGED
@@ -10,7 +10,8 @@ nltk.download('punkt')
|
|
10 |
import re
|
11 |
|
12 |
# leemos diccionario de entidades
|
13 |
-
diccionario = pd.
|
|
|
14 |
diccionario = diccionario.iloc[1:]
|
15 |
all_dicts = diccionario.apply(lambda x: {x['Entidad']: x['Categoria']}, axis = 1)
|
16 |
|
|
|
10 |
import re
|
11 |
|
12 |
# leemos diccionario de entidades
|
13 |
+
diccionario = pd.read_csv('diccionario.csv', encoding = 'utf-8-sig')
|
14 |
+
diccionario = diccionario.dropna()
|
15 |
diccionario = diccionario.iloc[1:]
|
16 |
all_dicts = diccionario.apply(lambda x: {x['Entidad']: x['Categoria']}, axis = 1)
|
17 |
|
diccionario.csv
ADDED
The diff for this file is too large to render.
See raw diff
|
|