Skip to content

Commit 2fb144d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 81a3e80 commit 2fb144d

File tree

5 files changed

+2
-8
lines changed

5 files changed

+2
-8
lines changed

barcodebert/bzsl/models/dnabert/tokenization_dna.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
# limitations under the License.
1515
"""Tokenization classes."""
1616

17-
1817
import collections
1918
import logging
2019
import os

barcodebert/bzsl/models/dnabert/tokenization_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
# limitations under the License.
1515
"""Tokenization classes for OpenAI GPT."""
1616

17-
1817
import copy
1918
import itertools
2019
import json

baselines/embedders.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,8 @@ def load_model(self, model_path: str = "../../external-models/DNABERT/", kmer: i
125125
# check if path exists
126126

127127
if not os.path.exists(dnabert_path):
128-
print(
129-
f"Path {dnabert_path} does not exists, check if the wrong path was given. \
130-
If not download from https://github.com/jerryji1993/DNABERT"
131-
)
128+
print(f"Path {dnabert_path} does not exists, check if the wrong path was given. \
129+
If not download from https://github.com/jerryji1993/DNABERT")
132130

133131
config = BertConfig.from_pretrained(dnabert_path)
134132
self.tokenizer = BertTokenizer.from_pretrained(dnabert_path)

scripts/DNABERT/dnabert/tokenization_dna.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
# limitations under the License.
1515
"""Tokenization classes."""
1616

17-
1817
import collections
1918
import logging
2019
import os

scripts/DNABERT/dnabert/tokenization_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
# limitations under the License.
1515
"""Tokenization classes for OpenAI GPT."""
1616

17-
1817
import copy
1918
import itertools
2019
import json

0 commit comments

Comments
 (0)