Skip to content

Commit 42b3280

Browse files
authored
Docs/private and public entities (#68)
* refactor node configs * move base modules to `abc` subpackage * make `pipeline` subpackage private * upd some typing * make `datafiles` subpackage private * reorganize subpackages: `dataset`, `schemas` * move `Split` to `custom_types` submodule * add hf logo near github logo
1 parent cca9c0d commit 42b3280

File tree

85 files changed

+174
-268
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+174
-268
lines changed

autointent/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from ._embedder import Embedder
2+
from ._dataset import Dataset
23
from ._hash import Hasher
34
from .context import Context
4-
from .context.data_handler import Dataset
5-
from .pipeline import Pipeline
5+
from ._pipeline import Pipeline
66

77
__all__ = ["Context", "Dataset", "Embedder", "Hasher", "Pipeline"]
File renamed without changes.
File renamed without changes.
File renamed without changes.

autointent/_dataset/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from ._dataset import Dataset
2+
3+
__all__ = ["Dataset"]

autointent/context/data_handler/_dataset.py renamed to autointent/_dataset/_dataset.py

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,8 @@
88
from datasets import ClassLabel, Sequence, concatenate_datasets, get_dataset_config_names, load_dataset
99
from datasets import Dataset as HFDataset
1010

11-
from autointent.custom_types import LabelType
12-
13-
from ._schemas import Intent, Tag
14-
15-
16-
class Split:
17-
"""
18-
Constants representing dataset splits.
19-
20-
:cvar str TRAIN: Training split.
21-
:cvar str VALIDATION: Validation split.
22-
:cvar str TEST: Testing split.
23-
:cvar str OOS: Out-of-scope split.
24-
:cvar str INTENTS: Intents split.
25-
"""
26-
27-
TRAIN = "train"
28-
VALIDATION = "validation"
29-
TEST = "test"
30-
OOS = "oos"
31-
INTENTS = "intents"
11+
from autointent.custom_types import LabelType, Split
12+
from autointent.schemas import Intent, Tag
3213

3314

3415
class Sample(TypedDict):
File renamed without changes.

0 commit comments

Comments
 (0)