StephanAkkerman / FluentAI

Automating language learning with the power of Artificial Intelligence. This repository presents FluentAI, a tool that combines Fluent Forever techniques with AI-driven automation. It streamlines the process of creating Anki flashcards, making language acquisition faster and more efficient.
https://akkerman.ai/FluentAI/
MIT License
9 stars 1 forks source link

Translate foreign word to English before computing semantic similarity #41

Closed StephanAkkerman closed 3 weeks ago

StephanAkkerman commented 3 weeks ago
  1. Description:

    • Problem: The foreign word does not get translated before computing the semantic sim. this causes the rating to be wrong.

    • Solution: We should see if there is a simple way to translate the word, or add the user to input the English translation.

    • Prerequisites: Could use: https://pypi.org/project/deep-translator/ or for now ask the English translation

  2. Tasks:

    • Translate word to English before calculating the semantic similarity
  3. Additional context See the semantic sim. for the chinese word for cat

      token_ort token_ipa  distance  imageability  orthographic_similarity  semantic_similarity
    75789     mauer      maʊɝ  0.923380      0.483503                      0.0             0.000000
    75778       mau       maʊ  0.923380      0.564250                      0.0             0.329258
    74445       mao       maʊ  0.923380      0.452691                      0.0             0.361128
StephanAkkerman commented 3 weeks ago

adding a translator would be better especially if we want to implement #10

StephanAkkerman commented 3 weeks ago

According to g2p they use ISO-639 and some modification