MARI-posa commited on
Commit
feb52ca
·
1 Parent(s): 19d9a62

Update stri.py

Browse files
Files changed (1) hide show
  1. stri.py +1 -0
stri.py CHANGED
@@ -18,6 +18,7 @@ model = AutoModel.from_pretrained(model_name, output_hidden_states=True)
18
 
19
  # Загрузка датасета и аннотаций к книгам
20
  books = pd.read_csv('all+++.csv')
 
21
  #books.dropna(inplace=True)
22
 
23
  #books = books[books['annotation'].apply(lambda x: len(x.split()) >= 40)]
 
18
 
19
  # Загрузка датасета и аннотаций к книгам
20
  books = pd.read_csv('all+++.csv')
21
+ books['author'].fillna('other', inplace=True)
22
  #books.dropna(inplace=True)
23
 
24
  #books = books[books['annotation'].apply(lambda x: len(x.split()) >= 40)]