mortii / anki-morphs

A MorphMan fork rebuilt from the ground up with a focus on simplicity, performance, and a codebase with minimal technical debt.
https://mortii.github.io/anki-morphs/
Mozilla Public License 2.0
47 stars 6 forks source link

Frequencylist doesn't work for me with Spanish #238

Closed SalomoDavidson closed 1 week ago

SalomoDavidson commented 1 month ago

Describe the bug

The frequencylist doesn't order my deck when I press on recall. I don't understand what I do wrong. I use the Spanish list. Everything in the settings seems fine.

image

mortii commented 1 month ago

The frequencylist doesn't order my deck when I press on recall.

  1. Does the deck contain cards with the note types you selected in the AnkiMorphs settings?
  2. Does it have sub-decks? If so, have you changed the deck options?
  3. Does it work if you use "Collection frequency" instead of the "es-freq.csv" file?
SalomoDavidson commented 1 month ago
  1. Yes it does,
  2. No it doesn't.
  3. Does that work? I only use the target word not the sentence. So every word is used one time.
mortii commented 1 month ago

3. Does that work? I only use the target word not the sentence. So every word is used one time.

Sorry, I was too vague. That was just a test for if your cards are reordered at all when you select something else.

If you are willing to share your card collection then I can probably figure out the problem quickly. I would need these two things:

  1. There is a "collection.anki2" file in the anki profile folder, upload it to google drive or some other place I could download it
  2. Go to "Tools" -> "Add-ons" -> Select "AnkiMorphs" -> click the "Config" button on the lower right side -> copy paste the info here.
SalomoDavidson commented 1 month ago

Ah oké, the cards are reordered but not in order of the frequencylist.

  1. https://we.tl/t-ydWOmpSGr6
  2. { "filters": [ { "extra_highlighted": false, "extra_score": false, "extra_unknowns": false, "extra_unknowns_count": false, "field": "Target Word", "modify": true, "morph_priority": "es-freq.csv", "morphemizer_description": "spaCy: es_core_news_lg", "note_type": "Migaku Spanish", "read": true, "tags": { "exclude": [], "include": [] } }, { "extra_highlighted": false, "extra_score": false, "extra_unknowns": false, "extra_unknowns_count": false, "field": "Word", "modify": false, "morph_priority": "es-freq.csv", "morphemizer_description": "spaCy: es_core_news_lg", "note_type": "ES1K-v2-02e18", "read": true, "tags": { "exclude": [], "include": [] } }, { "extra_highlighted": false, "extra_score": false, "extra_unknowns": false, "extra_unknowns_count": false, "field": "Voorkant", "modify": true, "morph_priority": "es-freq.csv", "morphemizer_description": "spaCy: es_core_news_lg", "note_type": "Basis", "read": true, "tags": { "exclude": [], "include": [] } } ], "preprocess_ignore_bracket_contents": true, "preprocess_ignore_names_morphemizer": false, "preprocess_ignore_names_textfile": false, "preprocess_ignore_round_bracket_contents": false, "preprocess_ignore_slim_round_bracket_contents": false, "preprocess_ignore_suspended_cards_content": false, "recalc_due_offset": 500000, "recalc_interval_for_known": 21, "recalc_move_known_new_cards_to_the_end": false, "recalc_number_of_morphs_to_offset": 100, "recalc_offset_new_cards": false, "recalc_on_sync": false, "recalc_read_known_morphs_folder": false, "recalc_suspend_known_new_cards": false, "recalc_toolbar_stats_use_known": false, "recalc_toolbar_stats_use_seen": true, "recalc_unknowns_field_shows_inflections": true, "recalc_unknowns_field_shows_lemmas": false, "shortcut_browse_all_same_unknown": "Shift+L", "shortcut_browse_ready_same_unknown": "L", "shortcut_browse_ready_same_unknown_lemma": "Ctrl+Shift+L", "shortcut_generators": "Ctrl+Shift+G", "shortcut_known_morphs_exporter": "Ctrl+Shift+E", "shortcut_learn_now": "Ctrl+Alt+N", "shortcut_recalc": "Ctrl+M", "shortcut_set_known_and_skip": "K", "shortcut_settings": "Ctrl+O", "shortcut_view_morphemes": "Ctrl+Alt+V", "skip_only_known_morphs_cards": false, "skip_show_num_of_skipped_cards": true, "skip_unknown_morph_seen_today_cards": false, "tag_known_automatically": "am-known-automatically", "tag_known_manually": "am-known-manually", "tag_learn_card_now": "am-learn-card-now", "tag_not_ready": "am-not-ready", "tag_ready": "am-ready" }
mortii commented 1 month ago

Which deck has the problem?

Screenshot from 2024-06-02 12-40-05

SalomoDavidson commented 1 month ago

image The deck called 'Spaanse Zinnen' put I put it outside the main deck, because I wanted it to work, but then it still didn't work for me. But I see that by you that is not updated.

SalomoDavidson commented 1 month ago

I checked it with words like él that should show up first. So if it works you should get this one: image

mortii commented 1 month ago

I recalced and it looks fine to me, it successfully orders the cards based on the frequency file: Screenshot from 2024-06-02 18-22-20 Screenshot from 2024-06-02 18-22-39 Screenshot from 2024-06-02 18-23-26

The "la" card you showed has the note type "Migaku Frequentie Spaans" which you haven't selected as a note filter in the ankimorphs settings, which is why it isn't reordered by ankimorphs. Screenshot from 2024-06-02 18-35-47

SalomoDavidson commented 1 month ago

Thanks! I changed that, but still, when I was checking it with adding 3 extra cards to my learning schedule for today it was still not in order of frequency. First came demasiado (1463d on the list) then la (3rd) en then demonstar (2548).

mortii commented 1 month ago

Your problem likely stems from something else in your setup, rather than a problem with the frequency file.

Here are some leading candidates:

  1. The note type is not what you expected - open the card info window and check that its note type matches a note filter that has modify enabled.
  2. The found morphs were not what you expected - this is a common issue. Enable some of the extra fields for a better insight into this. The am-unknows and am-highlighted extra fields are particularly useful.
  3. The deck behavior is not what you expected - having sub-decks can lead to issues, having multiple different note types in a deck can lead to issues, changing the insertion and display order can obviously also lead to unexpected results.

If you still find some cards that you think are wrong, then send me some screenshots of the cards and the info I described above (1 and 2 are the most important).

SalomoDavidson commented 1 month ago

I checked 1 and 3. I did 2, what does that do exactly? and for what should I look for?

Btw, thank you very much for spending so much time on me, I appreciate it :)

mortii commented 1 month ago

Extra fields contains data that AnkiMorphs finds/uses, so it activating them allows for easier debugging.

Here is an example with the same card as before, and with this we can now confirm that it successfully found the morph "la": Screenshot from 2024-06-03 15-23-52

SalomoDavidson commented 1 month ago

I will check it out, thank you for helping :)

github-actions[bot] commented 2 weeks ago

This issue is stale because no answers have been provided in the last 14 days. If there are still no answers within 7 days then the issue will be closed.

github-actions[bot] commented 1 week ago

This issue was closed because no answers were provided within 21 days.

github-actions[bot] commented 3 days ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.