[Userscript] Attempt to Eliminate Phantom Entries

Thank you @neoncube! You’re a star. :slight_smile:

Happy to help :slight_smile:

@Olaf.Rabbachin I’m afraid I’m unable to update that script, because it’s one of cooljingle’s. He’d need to update it in his code repository.

Gee, sorry, I mixed up the names!

No worries! :slight_smile:

Hi @neoncube,
Thank you so much for writing and maintaining this script. I think the script has cleaned up my text responses - it seemed to run ok anyway. But I have a puzzling problem with audio. When I was tidying up my database I noticed some words have a lot of old (phantom) audio options associated with them and running the script does not seem to change that.
Here’s an example- all the audio files dated 28/01/19 are from a bad, now-deleted upload:
https://www.memrise.com/api/thing/get/?thing_id=210477534
I can even play them in a web browser e.g.

But where are they? How do I delete them?
Is this something you would expect your script to be cleaning up or is it beyond its scope?
Again - thanks a million!

Hi @sarashaath.

I’ve heard of people having problems with phantom images before, although I think you might be the first one that I’ve heard of that’s having issue with phantom audio :slight_smile:

I think the that automatically fixing the phantom audio might be outside of the scope of the script, because I think it would involve uploading and deleting files, which sounds rather risky.

God willing, I’ll think about it and maybe give it a shot if I have time, though.

Would you be okay with adding me as a contributor to the course that you’re seeing the phantom audio on?

1 Like

Thanks for getting back so quickly. I’ll gladly add you.

Think I’ve seen at least one other person complaining of this audio problem in another thread. Probably not as widespread as the text issue though, as you say.

Here’s hoping you have a eureka moment! :crossed_fingers:t2: :grin:

Appreciate your time given to helping everyone here.

it is a quite widespread issue… i try to have natural voice all along my own and those i’m curating courses, but at the beginning i had only tts available, which in time were replaced… the tts still appears in listening skills, not for the right answer, but for the others…

i would not ask for solution, because, really… this is it, this whole thing, “it”, it is not worthy the effort of writing yet another script…

@sarashaath,

Okay, thanks :slight_smile: After you’ve added me as a contributor, can you please send me a link to one of the levels where you’re seeing the problem?

PM-ed you btw :slightly_smiling_face:

Hi @neoncube,

over the past few weeks I have made extensive changes, i. e. prefixed verbs with “to” and nouns with “a”/“an”, made corrections and additions, deleted entries and so forth. I’ve finished my revisions today.
So I went ahead and threw your script several times at the course: Advanced English (C1, C2) - by csaba.olah.942 - Memrise

I’ve seen a few entries that turned gray. After three runs, the following entries were still gray instead of green:

  • to pull off
  • a prodigal
  • uppity
  • to sort out
  • a bugger
  • a badger
  • to pan out
  • a tally

OTOH, the following turned green during the third run after having been gray after the previous two runs:

  • bound to be
  • to squander

I don’t know exactly what significance the gray entries have, but I suppose that these couldn’t be fixed?

Also, I have seen phantom entries in the course prior to the today’s changes. Is it that this attempt is just that and that it doesn’t help to execute the script consecutively?

LMK if I should you as a contributor to the course - in case you’d like to do some tests. Just note that there is almost 300k people that are or have been working on the course, so I’m a bit wary regarding experiments. :wink:

@Olaf.Rabbachin

Check earlier in this thread.

4 Likes

Hi again @sarashaath. I’m afraid I may not have time to work on this any time soon, sorry :confused: I do programming for my day job, so it’s rare that I come home and do more programming just for fun (although it does happen sometimes! :slight_smile:)

I also currently haven’t thought of a great way to solve the phantom audio issue. The only approaches that I’ve thought of so far come with risk, because they involve either uploading a fake audio entry and then immediately deleting it (which is risky because if the script dies between uploading the fake audio entry and deleting it, then there’s a fake audio entry left attached to the word) or deleting an existing audio entry and the quickly reuploading it (which sounds even more risky).

Hi @Olaf.Rabbachin :slight_smile:

@duaal’s explanation of the gray entries is correct.

Are you getting red entries (signifying failures) sometimes when you run the script on a long course? If so, there might be ways to mitigate that.

I can’t think of a reason why entries would turn green after being gray during the previous runs, unless those items were modified, or some of the levels failed to expand when the script ran (which does happen sometimes, I think :slight_smile:)

1 Like

Totally understand. :sunglasses:

1 Like

Thanks, @duaal and @neoncube! I suppose I didn’t search thoroughly enough as I actually did perform a search for gray here on the thread. :woozy_face:

Using the script in order to check for dupes is ideal too and adds another layer of usefulness! There was a whole bunch of them in the course, but I knew that I probably didn’t find them all. The fact that some entries vanished from the “gray list” may well be connected to changes that I performed between script runs.
I’ll check back on the course’s data next week and will let you know here.

Cheers!

1 Like

@Olaf.Rabbachin No worries, and good to hear! :slight_smile:

As a side note, dupes aren’t necessarily bad, depending on how the course is set up. Memrise is smart enough that if you learn an item in one level and then encounter it again in another level, it’ll already be marked as learned, and sometimes it can be useful to have the same item in multiple levels (if the item is a component in multiple dwords that are in different levels, for instance :slight_smile:)

1 Like

I think that only applies if the entries are 100% equal. In the aforementioned course the source translations differed though.

Just to update on the phantom audio issue - I realised the phantom audio entries that were bothering me were not quite as widespread as I thought. Only a few levels were affected so following @neoncube’s theory about deleting and reuploading, I did this manually and it worked a charm. :+1:t2:

3 Likes

@sarashaath Good to hear! :slight_smile: