Comments (3)
Thanks for reaching out. We don't currently have a way to view all salience maps at once in the tool, but I can see why this would be valuable.
Are you looking to view them all and save the images, or are you trying to save the token-wise salience values for each token in each input for use outside the tool?
from lit.
Thanks for reaching out. We don't currently have a way to view all salience maps at once in the tool, but I can see why this would be valuable.
Are you looking to view them all and save the images, or are you trying to save the token-wise salience values for each token in each input for use outside the tool?
Yes, I am trying to realize the latter so that I can see which tokens have the most salience values in each input.
from lit.
We don't currently have a good way of exporting this directly from the UI, but if you want you can easily use the salience mappers in a notebook or a stand-alone script. Something like this will work without requiring you to start a LIT server:
dataset = SSTData(...)
model = SentimentModel(...)
lime = lime_explainer.LIME()
# salience is a list of SalienceMap objects, which have .tokens and .salience fields
# see https://github.com/PAIR-code/lit/blob/main/lit_nlp/api/dtypes.py#L68
salience_for_all_examples = lime.run(dataset.examples, model, dataset)
from lit.
Related Issues (20)
- Would LiT support Object Detection Computer Vision models? HOT 1
- Not able to download the glue data-set
- How to visulaize attentions
- How to visulaize attentions for Hugging face custom models HOT 15
- [Text Generation] Debug a Text Generator HOT 4
- 404 no found with example test
- No widget displays when use LIT in SageMaker (Notebook Instance) HOT 10
- GSoC - Demos Project: Multi-Lingual Demo for the TyDi QA Task HOT 2
- GSoC - Tutorial Project: Feature Attribution
- GSoC - Demos Project: Text-to-Image Generation Demo
- Unknown error when running TCAV on a multiclass dataset HOT 3
- can't build the frontend HOT 3
- Keep one model in memory at any given time
- GSoC - Tutorial Project: Text Salience Maps
- Cuda memory errors when running pytorch example HOT 2
- GlueModel from example returns map object instead of list HOT 4
- Adding an entry in "Datapoint Editor" causes "Data Table" to jump to 1st page of results HOT 5
- Word clouds with LIT HOT 1
- odd error running on colab HOT 3
- Almost working Google Colab example HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lit.