Remove dead code in solon.py main()#1
Conversation
Leftover from editing: a for-loop calling lm.sentence_total(s) (which never existed; the class only has sentence_bits) followed by a 'pass' and redefinition of lm_score. The second loop was the live one. This was a small hygiene cleanup after reviewing the README and running all demos.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe PR fixes the grammaticality evaluation section in ChangesGrammaticality Evaluation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Small cleanup after reviewing README and running all demos.
lm.sentence_total(s)(method never existed on CompressionLM; onlysentence_bitsdoes).lm_scorefromsentence_bits) was already present and used.python solon.pyoutput unchanged.Part of addressing 'see readme' + 'do all' + user request to commit/push the cleanup.
Summary by CodeRabbit