Skip to content

Commit

Permalink
Remove unused comments related to Python 2 compatibility.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 442129176
  • Loading branch information
yilei authored and LIT team committed Apr 16, 2022
1 parent 8cf8119 commit 0036169
Show file tree
Hide file tree
Showing 21 changed files with 0 additions and 21 deletions.
1 change: 0 additions & 1 deletion lit_nlp/components/citrus/lime.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Lint as: python3
"""Local Interpretable Model-agnostic Explanations (LIME).
LIME was proposed in the following paper:
Expand Down
1 change: 0 additions & 1 deletion lit_nlp/components/citrus/lime_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Lint as: python3
import collections
import functools
from absl.testing import absltest
Expand Down
1 change: 0 additions & 1 deletion lit_nlp/components/remote_model.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Lint as: python3
"""Client code for querying remote models hosted by a LIT server."""

from typing import Text, Optional, Any, List, Dict
Expand Down
1 change: 0 additions & 1 deletion lit_nlp/examples/custom_module/potato_demo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Lint as: python3
r"""Quick-start demo for a sentiment analysis model with a custom frontend.
This demo fine-tunes a small Transformer (BERT-tiny) on the Stanford Sentiment
Expand Down
1 change: 0 additions & 1 deletion lit_nlp/examples/datasets/classification.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Lint as: python3
"""Text classification datasets, including single- and two-sentence tasks."""
from typing import List

Expand Down
1 change: 0 additions & 1 deletion lit_nlp/examples/datasets/glue.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Lint as: python3
"""GLUE benchmark datasets, using TFDS.
See https://gluebenchmark.com/ and
Expand Down
1 change: 0 additions & 1 deletion lit_nlp/examples/datasets/lm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Lint as: python3
"""Language modeling datasets."""

import glob
Expand Down
1 change: 0 additions & 1 deletion lit_nlp/examples/datasets/mt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Lint as: python3
"""Machine translation datasets."""

from typing import Optional
Expand Down
1 change: 0 additions & 1 deletion lit_nlp/examples/glue_demo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Lint as: python3
r"""Example demo loading a handful of GLUE models.
For a quick-start set of models, run:
Expand Down
1 change: 0 additions & 1 deletion lit_nlp/examples/lm_demo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Lint as: python3
r"""Example demo loading pre-trained language models.
Currently supports the following model types:
Expand Down
1 change: 0 additions & 1 deletion lit_nlp/examples/models/glue_models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Lint as: python3
"""Wrapper for fine-tuned HuggingFace models in LIT."""

import os
Expand Down
1 change: 0 additions & 1 deletion lit_nlp/examples/models/pretrained_lms.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Lint as: python3
"""Wrapper for HuggingFace models in LIT.
Includes BERT masked LM, GPT-2, and T5.
Expand Down
1 change: 0 additions & 1 deletion lit_nlp/examples/models/t5.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Lint as: python3
"""LIT wrappers for T5, supporting both HuggingFace and SavedModel formats."""
import re
from typing import List
Expand Down
1 change: 0 additions & 1 deletion lit_nlp/examples/quickstart_sst_demo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Lint as: python3
r"""Quick-start demo for a sentiment analysis model.
This demo fine-tunes a small Transformer (BERT-tiny) on the Stanford Sentiment
Expand Down
1 change: 0 additions & 1 deletion lit_nlp/examples/simple_pytorch_demo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Lint as: python3
r"""Code example for a custom model, using PyTorch.
This demo shows how to use a custom model with LIT, in just a few lines of code.
Expand Down
1 change: 0 additions & 1 deletion lit_nlp/examples/simple_tf2_demo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Lint as: python3
r"""Code example for a custom model, using TensorFlow 2.
This demo shows how to use a custom model with LIT, in just a few lines of code.
Expand Down
1 change: 0 additions & 1 deletion lit_nlp/examples/sst_pytorch_demo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Lint as: python3
r"""Code example for a custom model, using PyTorch.
This demo shows how to use a custom model with LIT, in just a few lines of code.
Expand Down
1 change: 0 additions & 1 deletion lit_nlp/examples/t5_demo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Lint as: python3
r"""Example demo loading a T5 model.
To run locally with a small number of examples:
Expand Down
1 change: 0 additions & 1 deletion lit_nlp/examples/tools/glue_trainer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Lint as: python3
r"""Lightweight trainer script to fine-tune on a GLUE or GLUE-like task.
Usage:
Expand Down
1 change: 0 additions & 1 deletion lit_nlp/examples/toxicity_demo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Lint as: python3
r"""LIT Demo for a Toxicity model.
To run locally:
Expand Down
1 change: 0 additions & 1 deletion lit_nlp/examples/xnli_demo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Lint as: python3
r"""Example demo for multilingual NLI on the XNLI eval set.
To run locally with our trained model:
Expand Down

0 comments on commit 0036169

Please sign in to comment.