Skip to content

Commit

Permalink
make max train size default to none
Browse files Browse the repository at this point in the history
  • Loading branch information
elboy3 committed Oct 19, 2023
1 parent 212554b commit 1d37f19
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dataquality/integrations/seq2seq/formatter.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
from abc import ABC, abstractmethod
from dataclasses import dataclass
from typing import Dict, Type
from typing import Dict, Optional, Type


@dataclass
class BaseFormatter(ABC):
name: str
input_col: str
target_col: str
max_train_size: int
max_train_size: Optional[int] = None

@abstractmethod
def format_sample(self, sample: Dict[str, str]) -> Dict[str, str]:
Expand All @@ -21,7 +21,6 @@ class DefaultFormatter(BaseFormatter):
name: str = "default"
input_col: str = "text"
target_col: str = "label"
max_train_size: int = 100

def format_sample(self, sample: Dict[str, str]) -> Dict[str, str]:
"""Base formatter is identity function"""
Expand Down

0 comments on commit 1d37f19

Please sign in to comment.