You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/demos/index.html
-55
Original file line number
Diff line number
Diff line change
@@ -98,17 +98,6 @@
98
98
<divclass="demo-card-copy">Analyze a tabular data model with LIT, including exploring partial dependence plots and automatically finding counterfactuals.</div>
<divclass="demo-card-copy">Use LIT directly inside a Colab notebook. Explore binary classification for sentiment analysis using SST2 from the General Language Understanding Evaluation (GLUE) benchmark suite.</div>
<divclass="demo-card-copy">Use LIT to explore gendered associations in a coreference system, which matches pronouns to their antecedents. This demo highlights how LIT can work with structured prediction models (edge classification), and its capability for disaggregated analysis.</div>
<divclass="demo-card-copy">Explore a BERT-based masked-language model. See what tokens the model predicts should fill in the blank when any token from an example sentence is masked out.</div>
<divclass="demo-card-copy">Use a T5 model to summarize text. For any example of interest, quickly find similar examples from the training set, using an approximate nearest-neighbors index.</div>
<divclass="demo-card-copy">Explore the faithfulness of input salience methods on a BERT-base model across different datasets and artificial shortcuts.</div>
might output `'tokens': lit_types.Tokens(...)`, and accept as (optional)
680
680
input `'tokens': lit_types.Tokens(required=False, ...)`. An interpretability
681
681
component could take output from the former, swap one or more tokens (e.g.
@@ -712,11 +712,9 @@ this can cause jitter (UI modules appearing, disappearing, reordering, resizing,
712
712
etc.) when switching between models or datasets with heterogeneous `Spec`s.
713
713
714
714
When implementing your own LIT components and modules, you can use
715
-
[`utils.find_spec_keys()`][utils-lib]
716
-
(Python) and
717
-
[`findSpecKeys()`][utils-lib]
718
-
(TypeScript) to identify fields of interest in a `Spec`. These methods recognize
719
-
and respect subclasses. For example,
715
+
[`utils.find_spec_keys()`][utils-lib-py] (Python) and
716
+
[`findSpecKeys()`][utils-lib] (TypeScript) to identify fields of interest in a
717
+
`Spec`. These methods recognize and respect subclasses. For example,
720
718
`utils.find_spec_keys(spec, Scalar)` will also match any `RegressionScore`
721
719
fields, but `utils.find_spec_keys(spec, RegressionScore)` will not return all
722
720
`Scalar` fields in the `Spec`.
@@ -807,8 +805,13 @@ _See the [examples](https://github.com/PAIR-code/lit/blob/main/lit_nlp/examples)
807
805
808
806
### Available types
809
807
810
-
The full set of `LitType`s is defined in [types.py](https://github.com/PAIR-code/lit/blob/main/lit_nlp/api/types.py). Numeric types such as `Integer` and `Scalar` have predefined ranges that can be overridden using corresponding `min_val` and `max_val` attributes as seen [here](https://github.com/PAIR-code/lit/blob/main/lit_nlp/examples/datasets/penguin_data.py;l=19-22;rcl=574999438). The different types available in LIT are summarized
0 commit comments