Skip to content

Commit 4b1696b

Browse files
authored
Merge pull request #212 from IndicoDataSolutions/begin_removal
remove doc extraction, review, and dataset classes
2 parents dc6cf5f + c9e8ee4 commit 4b1696b

25 files changed

Lines changed: 1 addition & 1421 deletions

examples/copy_teach_task.py

Lines changed: 0 additions & 20 deletions
This file was deleted.

examples/create_auto_classification_workflow.py

Lines changed: 0 additions & 27 deletions
This file was deleted.

examples/dataset_tasks.py

Lines changed: 0 additions & 25 deletions
This file was deleted.

examples/merge_snapshots.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
from indico_toolkit import create_client
2-
from indico_toolkit.indico_wrapper import Datasets
31
from indico_toolkit.snapshots import Snapshot
42

5-
HOST = "app.indico.io"
6-
API_TOKEN_PATH = "./indico_api_token.txt"
73
PATH_TO_SNAPSHOT = "./snapshot_1.csv"
84
PATH_TO_SNAPSHOT_2 = "./snapshot_2.csv"
95
OUTPUT_PATH = "./merged_snapshot_output.csv"
@@ -34,19 +30,3 @@
3430
# will now include all of the samples from snap_to_append as well
3531
print(main_snap.number_of_samples)
3632
main_snap.to_csv(OUTPUT_PATH)
37-
38-
"""
39-
With that merged snapshot, you can now use the toolkit to upload and train a model.
40-
"""
41-
client = create_client(HOST, API_TOKEN_PATH)
42-
dataset = Datasets(client)
43-
uploaded_dataset = dataset.create_dataset([OUTPUT_PATH], dataset_name="my_dataset")
44-
print(f"My Dataset ID is {uploaded_dataset.id}")
45-
model = dataset.train_model(
46-
uploaded_dataset,
47-
model_name="my_model",
48-
source_col=main_snap.text_col,
49-
target_col=main_snap.label_col,
50-
wait=False,
51-
)
52-
print(f"My Model Group ID is {model.id}")

examples/pdf_highlighter.py

Lines changed: 0 additions & 35 deletions
This file was deleted.

examples/submitting_to_doc_extraction.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

indico_toolkit/auto_populate/__init__.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)