mirror of https://github.com/doccano/doccano.git
pythonannotation-tooldatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learning
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
435 B
19 lines
435 B
from typing import Any, Dict, List
|
|
|
|
|
|
class Record:
|
|
|
|
def __init__(self,
|
|
id: int,
|
|
data: str,
|
|
label: List[Any],
|
|
user: str,
|
|
metadata: Dict[Any, Any]):
|
|
self.id = id
|
|
self.data = data
|
|
self.label = label
|
|
self.user = user
|
|
self.metadata = metadata
|
|
|
|
def __str__(self):
|
|
return f'{self.data}\t{self.label}'
|