stinoco commited on
Commit
4ab86fc
1 Parent(s): ecfe3f6

added another dictionary

Browse files
Files changed (2) hide show
  1. app.py +2 -1
  2. 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.read_excel('diccionario.xlsx')
 
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