@전성훈 / Sunghoon Jeon

Results comments of @전성훈 / Sunghoon Jeon

# Idea > To make it more concrete—just as an example—you’d allow passing a compression level to `--compress`, use `structure` (default) for the current behavior, and add `semantic` to include...

Compressing a single source-code file at once (import state, function signature, function implementation, etc. everything.) could be another method too. It can be way easier to implement.

Hi. I’m trying to port LLMLingua-2 to TypeScript. You can check the current development status at [here](https://github.com/atjsh/llmlingua-2-js). When the port gets implemented, I think we could deliver *token removal pipeline*...

Initial version implemented on https://github.com/atjsh/llmlingua-2-js/commit/eb1716e8f01b04598bb11243c45dc58022fdae72

For now, we can use https://huggingface.co/Arcoldd/llmlingua4j-bert-base-onnx model.

# As of `1.2.0` - Environment: - OS: macOS 15 - Chip: M1 Pro - Runtime: Node.js v23.11.0 [E2E Test](https://github.com/atjsh/llmlingua-2-js/tree/c405385756e902236a2abb3f6503a499b6906299/src/e2e) are passed without thrown exceptions.

Test Needed: https://www.jsdelivr.com/package/npm/@atjsh/llmlingua-2

Currently implementation sometimes throw error on the loading phase. Will address that bug on other more generalized issue ticket.

resolved in 24c827459f844bf61f6d064888e9cba084753281

https://github.com/atjsh/llmlingua-2-js/commit/7f4c1d09d4fce0a94691980a8c0079eef6bef0e1 resolves this