this post was submitted on 29 Jan 2025
3 points (80.0% liked)

News Summary

116 readers
276 users here now

News feed with AI summary.

Rules:

  1. follow instance rules
  2. Engage in good faith discussion
  3. Tag relevant posts with [Meta] or [Request]
  1. No calls for actionalable violence
  2. Congratulations your behavior is now a new rule

founded 1 month ago
MODERATORS
 

Author: Unknown
Published on: 29/01/2025 | 00:00:00

AI Summary:
US President Donald Trump signed into law a bill requiring federal detention of undocumented immigrants accused of criminal activity. It’s the first piece of legislation he’s signed in his new term.

Original: 32 words
Summary: 33 words
Percent reduction: -3.12%

I'm a bot and I'm open source

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 day ago (1 children)

Looks like it counts the text "AI Summary" in the word count. The article is so short it dropped one unnecessary word, resulting in one more word total.

[–] [email protected] 1 points 1 day ago (1 children)

Holy shit that is the most edge case of edge cases lol. I don't think it counts the text "AI Summary" in the word count I assume its an issue with me going len(text.split()) is good enough. Guess I'm over counting somehow. I would be greatfull if someone could make a pull fixing this.

[–] [email protected] 2 points 1 day ago (1 children)

Looking at the code, my guess was incorrect.

When counting the length of an article, it is not calculated correctly. It appears that this is because spaces before periods aren't stripped out before performing the count, making those periods count as their own words.

I'm too tired to figure out how to make it let me push to a branch right now. I have opened an issue that explains how to fix it.

[–] [email protected] 1 points 1 day ago

Thx. FYI, U do it by making a fork of the project that then u can make a merge request from ur fork back to the original via the web ui.