Changed python version in pre-commit-config back to 3.6
This commit is contained in:
Родитель
ff129d6db7
Коммит
4de4ece15c
|
@ -3,7 +3,7 @@ repos:
|
|||
rev: stable
|
||||
hooks:
|
||||
- id: black
|
||||
language_version: python3.7
|
||||
language_version: python3.6
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v1.2.3
|
||||
hooks:
|
||||
|
|
|
@ -75,7 +75,7 @@ def get_train_test_data(text, test_percentage=0.5, random_seed=None):
|
|||
s_split = s.split("\n")
|
||||
# split "word label" pairs
|
||||
s_split_split = [t.split() for t in s_split]
|
||||
sentence_list.append("".join([t[0] for t in s_split_split]))
|
||||
sentence_list.append(" ".join([t[0] for t in s_split_split]))
|
||||
labels_list.append([t[1] for t in s_split_split])
|
||||
if len(s_split_split) > max_seq_len:
|
||||
max_seq_len = len(s_split_split)
|
||||
|
|
Загрузка…
Ссылка в новой задаче