Spaces:
Sleeping
Sleeping
Mya-Mya
commited on
Commit
·
8f78096
1
Parent(s):
e0920f9
Create DummyMixer
Browse files- dummymixer.py +6 -0
- mixer.py +7 -0
dummymixer.py
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from mixer import Mixer
|
2 |
+
|
3 |
+
|
4 |
+
class DummyMixer(Mixer):
|
5 |
+
def mix_sentences(self, sentence_A: str, sentence_B: str, A_ratio: float, max_n_tokens: int = 140):
|
6 |
+
return f"This is a DummyMixer. {sentence_A=}, {sentence_B=} at {A_ratio=}, {max_n_tokens=}"
|
mixer.py
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from abc import ABC, abstractmethod
|
2 |
+
|
3 |
+
|
4 |
+
class Mixer(ABC):
|
5 |
+
@abstractmethod
|
6 |
+
def mix_sentences(self, sentence_A: str, sentence_B: str, A_ratio: float, max_n_tokens: int = 140):
|
7 |
+
raise NotImplementedError()
|