added task_type and updated init
This commit is contained in:
parent
0f243eaac2
commit
d48815cca2
@ -1,3 +1,4 @@
|
|||||||
from .attention_mask import get_attention_mask
|
from .attention_mask import get_attention_mask
|
||||||
|
from .task_type import TaskType
|
||||||
|
|
||||||
__all__ = ["get_attention_mask"]
|
__all__ = ["get_attention_mask", "TaskType"]
|
||||||
6
Project_Model/Libs/Transformer/Utils/task_type.py
Normal file
6
Project_Model/Libs/Transformer/Utils/task_type.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
from enum import Enum, auto
|
||||||
|
|
||||||
|
class TaskType(Enum):
|
||||||
|
RDF2TEXT = auto()
|
||||||
|
MASK = auto()
|
||||||
|
COMPLETATION = auto()
|
||||||
Loading…
x
Reference in New Issue
Block a user