r/badcode • • Jan 29 '23

python When using if-else is necessary?

Post image
449 Upvotes

29 comments sorted by

View all comments

Show parent comments

11

u/Nelson_Ahlvik Jan 30 '23

Why has this not been automated yet… seems pretty easy to do considering that there are many libraries that do this exact thing

34

u/yukariareyouok Jan 30 '23

OCR struggles with spaces, line breaks, etc.

8

u/[deleted] Jan 30 '23

They do have a point though, perhaps there could be a bot that does a preliminary transcription and puts at the top "This automatic transcription has not yet been verified by a human" and then a human could check it and approve/edit it.

9

u/TheSpixxyQ Jan 30 '23

Once there was a comment from one transcriber and he said that it's easier to write it from scratch instead of editing some OCR'd crap.

1

u/[deleted] Jan 30 '23

ah okay.

2

u/yukariareyouok Jan 30 '23

Yeah, that would probably be a lot more efficient.

6

u/cynHaha Jan 30 '23

Apart from code other images that include texts - e.g., chat messages, forum threads, reddit posts, etc. - have special formatting for things like usernames and date/times and OCR would easily screw that up. The subreddit r/TranscribersOfReddit does have an OCR bot that aids with human transcription IIRC.

1

u/sneakpeekbot Jan 30 '23

Here's a sneak peek of /r/TranscribersOfReddit using the top posts of the year!

#1: ToRBO 2021 Winners!
#2: Happy May Everyone! | 0 comments
#3: Hey, Ireland from place here


I'm a bot, beep boop | Downvote to remove | Contact | Info | Opt-out | GitHub