microsoft / microsoft/LLMLingua
[Question]: How to obtain the masked and kept tokens?
Open
Nobody has claimed this yet.
question
- Dominant language
- Python
- Stars
- 6.7k
- Forks
- 428
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 1
Description
Describe the issue
I noticed that in PromptCompressor.get_compressed_input, there is a variable called need_idx. Is that all I need?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with PromptCompressor.get_compressed_input and trace how need_idx is produced and consumed. Check whether the public API exposes the masked and kept tokens; done means documenting the supported access path or clarifying that no such output is available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100