diff --git a/lbx_prompt.txt b/lbx_prompt.txt index dd6be260d..19873114d 100644 --- a/lbx_prompt.txt +++ b/lbx_prompt.txt @@ -11930,8 +11930,12 @@ def expected_export_v2_text(): 'annotation_kind': 'TextEntity', 'classifications': [], 'location': { - 'start': 67, - 'end': 128 + 'start': + 66, + 'end': + 128, + 'token': + "more people to express themselves online๐Ÿ˜ž๐Ÿ˜‚โ€š, research suggests" } }], 'classifications': [{ diff --git a/tests/data/annotation_import/conftest.py b/tests/data/annotation_import/conftest.py index 08e4846ed..0e6ba9604 100644 --- a/tests/data/annotation_import/conftest.py +++ b/tests/data/annotation_import/conftest.py @@ -116,9 +116,9 @@ def document_data_row(rand_gen): def text_data_row(rand_gen): return { "row_data": - "https://storage.googleapis.com/lb-artifacts-testing-public/sdk_integration_test/sample-text-1.txt", + "https://storage.googleapis.com/lb-artifacts-testing-public/sdk_integration_test/sample-text-2.txt", "global_key": - f"https://storage.googleapis.com/lb-artifacts-testing-public/sdk_integration_test/sample-text-1.txt-{rand_gen(str)}", + f"https://storage.googleapis.com/lb-artifacts-testing-public/sdk_integration_test/sample-text-2.txt-{rand_gen(str)}", "media_type": "TEXT", } @@ -987,7 +987,7 @@ def point_inference(prediction_id_mapping): @pytest.fixture def entity_inference(prediction_id_mapping): entity = prediction_id_mapping["named-entity"].copy() - entity.update({"location": {"start": 67, "end": 128}}) + entity.update({"location": {"start": 66, "end": 128}}) del entity["tool"] return entity @@ -1499,9 +1499,13 @@ def expected_export_v2_text(): "value": "named_entity", "annotation_kind": "TextEntity", "classifications": [], - "location": { - "start": 67, - "end": 128 + 'location': { + 'start': + 66, + 'end': + 128, + 'token': + "more people to express themselves online๐Ÿ˜ž๐Ÿ˜‚, research suggests" }, }], "classifications": [