Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProteinTokenizerTransform #44

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ nav:
- "beignet.func":
- "Molecular dynamics": "reference/func/molecular-dynamics.md"
- "beignet.io": "reference/beignet.io.md"
- "beignet.tokenizers": "reference/beignet.tokenizers.md"
- "beignet.transforms":
- "General-purpose": "reference/transforms/general-purpose.md"
plugins:
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ requires-python = ">=3.10"

[project.optional-dependencies]
all = [
"beignet[datasets,docs,mdtraj,test]",
"beignet[datasets,docs,mdtraj,test,tokenizers]",
]
datasets = [
"biopython",
Expand All @@ -44,6 +44,9 @@ test = [
"pytest-mock",
"scipy",
]
tokenizers = [
"transformers",
]

[tool.ruff]
lint.select = [
Expand Down
Empty file added src/beignet/data/__init__.py
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"cls_token": "<cls>",
"eos_token": "<eos>",
"mask_token": "<mask>",
"pad_token": "<pad>",
"unk_token": "<unk>"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"clean_up_tokenization_spaces": true,
"do_lower_case": false,
"model_max_length": 1024,
"tokenizer_class": "SequenceTokenizer"
}
53 changes: 53 additions & 0 deletions src/beignet/data/tokenizers/3di_tokenizer/vocab.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<cls>
<pad>
<eos>
<unk>
L
A
G
V
S
E
R
T
I
D
P
K
Q
N
F
Y
M
H
W
C
X
B
U
Z
O
.
-
<null_1>
<mask>
p
y
n
w
r
q
h
g
d
l
v
t
m
f
s
a
e
i
k
c
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"cls_token": "[CLS]",
"eos_token": "[SEP]",
"mask_token": "[MASK]",
"pad_token": "[PAD]",
"unk_token": "[UNK]"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"clean_up_tokenization_spaces": true,
"do_lower_case": false,
"model_max_length": 1000000,
"tokenizer_class": "SequenceTokenizer"
}
Loading
Loading