Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -48,7 +48,7 @@ out = pipe(
|
|
| 48 |
}
|
| 49 |
)
|
| 50 |
|
| 51 |
-
print(out) #
|
| 52 |
|
| 53 |
out = pipe(
|
| 54 |
{
|
|
@@ -59,7 +59,7 @@ out = pipe(
|
|
| 59 |
}
|
| 60 |
)
|
| 61 |
|
| 62 |
-
print(out) #
|
| 63 |
|
| 64 |
```
|
| 65 |
|
|
|
|
| 48 |
}
|
| 49 |
)
|
| 50 |
|
| 51 |
+
print(out) # EXON
|
| 52 |
|
| 53 |
out = pipe(
|
| 54 |
{
|
|
|
|
| 59 |
}
|
| 60 |
)
|
| 61 |
|
| 62 |
+
print(out) # INTRON
|
| 63 |
|
| 64 |
```
|
| 65 |
|
__pycache__/bert_nucleotide_classification.cpython-313.pyc
ADDED
|
Binary file (8.27 kB). View file
|
|
|
bert_nucleotide_classification.py
CHANGED
|
@@ -32,10 +32,10 @@ def process_sequence(seq: str) -> str:
|
|
| 32 |
|
| 33 |
def process_label(p: str) -> str:
|
| 34 |
if p == 0:
|
| 35 |
-
return "
|
| 36 |
if p == 1:
|
| 37 |
-
return "
|
| 38 |
-
return "
|
| 39 |
|
| 40 |
def ensure_optional_str(value: Any) -> str:
|
| 41 |
return value if isinstance(value, str) else ""
|
|
|
|
| 32 |
|
| 33 |
def process_label(p: str) -> str:
|
| 34 |
if p == 0:
|
| 35 |
+
return "EXON"
|
| 36 |
if p == 1:
|
| 37 |
+
return "INTRON"
|
| 38 |
+
return "UNKNOWN"
|
| 39 |
|
| 40 |
def ensure_optional_str(value: Any) -> str:
|
| 41 |
return value if isinstance(value, str) else ""
|