diff --git a/lit_nlp/examples/models/model_utils.py b/lit_nlp/examples/glue/model_utils.py similarity index 100% rename from lit_nlp/examples/models/model_utils.py rename to lit_nlp/examples/glue/model_utils.py diff --git a/lit_nlp/examples/models/model_utils_test.py b/lit_nlp/examples/glue/model_utils_test.py similarity index 99% rename from lit_nlp/examples/models/model_utils_test.py rename to lit_nlp/examples/glue/model_utils_test.py index d3e238d9..27747a78 100644 --- a/lit_nlp/examples/models/model_utils_test.py +++ b/lit_nlp/examples/glue/model_utils_test.py @@ -2,7 +2,7 @@ import os from absl.testing import absltest -from lit_nlp.examples.models import model_utils +from lit_nlp.examples.glue import model_utils import numpy as np import transformers diff --git a/lit_nlp/examples/glue/models.py b/lit_nlp/examples/glue/models.py index 9f14fe83..d8c3219b 100644 --- a/lit_nlp/examples/glue/models.py +++ b/lit_nlp/examples/glue/models.py @@ -12,7 +12,7 @@ import attr from lit_nlp.api import model as lit_model from lit_nlp.api import types as lit_types -from lit_nlp.examples.models import model_utils +from lit_nlp.examples.glue import model_utils from lit_nlp.lib import file_cache from lit_nlp.lib import utils import numpy as np diff --git a/lit_nlp/examples/models/testdata/bert_tokenizer/config.json b/lit_nlp/examples/glue/testdata/bert_tokenizer/config.json similarity index 100% rename from lit_nlp/examples/models/testdata/bert_tokenizer/config.json rename to lit_nlp/examples/glue/testdata/bert_tokenizer/config.json diff --git a/lit_nlp/examples/models/testdata/bert_tokenizer/special_tokens_map.json b/lit_nlp/examples/glue/testdata/bert_tokenizer/special_tokens_map.json similarity index 100% rename from lit_nlp/examples/models/testdata/bert_tokenizer/special_tokens_map.json rename to lit_nlp/examples/glue/testdata/bert_tokenizer/special_tokens_map.json diff --git a/lit_nlp/examples/models/testdata/bert_tokenizer/tokenizer_config.json b/lit_nlp/examples/glue/testdata/bert_tokenizer/tokenizer_config.json similarity index 100% rename from lit_nlp/examples/models/testdata/bert_tokenizer/tokenizer_config.json rename to lit_nlp/examples/glue/testdata/bert_tokenizer/tokenizer_config.json diff --git a/lit_nlp/examples/models/testdata/bert_tokenizer/vocab.txt b/lit_nlp/examples/glue/testdata/bert_tokenizer/vocab.txt similarity index 100% rename from lit_nlp/examples/models/testdata/bert_tokenizer/vocab.txt rename to lit_nlp/examples/glue/testdata/bert_tokenizer/vocab.txt diff --git a/lit_nlp/examples/models/__init__.py b/lit_nlp/examples/models/__init__.py deleted file mode 100644 index c6334245..00000000 --- a/lit_nlp/examples/models/__init__.py +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License.