Spaces:
Runtime error
Runtime error
Update stri.py
Browse files
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)]
|