Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gruut is too slow #47

Open
yiershanxll opened this issue May 28, 2024 · 5 comments
Open

gruut is too slow #47

yiershanxll opened this issue May 28, 2024 · 5 comments

Comments

@yiershanxll
Copy link

when I use gruut to convert arabic text to phomes. It cost me 6s / 10 sentence, sentence is same like "'الرئيس مريدي والبيادي وأقصد تماما ليبيا'", my question is how to improve the speed

@neurlang
Copy link

hello, I started a competing project. The upstream was not responsive about adding my language. I plan to add Arabic and it will be faster.

@neurlang
Copy link

Hello, I can phonemize sentence like that in 3ms. The quality isn't the best.

{
	"Words": [
		{
			"Linguistic": "الرئيس",
			"Phonetic": "ːrlirarjasa"
		},
		{
			"Linguistic": "مريدي",
			"Phonetic": "maraːdai"
		},
		{
			"Linguistic": "والبيادي",
			"Phonetic": "ːtʔalabiːbadaja"
		},
		{
			"Linguistic": "وأقصد",
			"Phonetic": "waʔaqasˤdi"
		},
		{
			"Linguistic": "تماما",
			"Phonetic": "tamuʔamːb"
		},
		{
			"Linguistic": "ليبيا",
			"Phonetic": "liːbiːbʔa"
		}
	]
}

@neurlang
Copy link

neurlang commented Oct 1, 2024

Tried today, time was 683 ms

{
   "Words":[
      {
         "Linguistic":"الرئيس",
         "Phonetic":"ːlararjasa"
      },
      {
         "Linguistic":"مريدي",
         "Phonetic":"marajadaja"
      },
      {
         "Linguistic":"والبيادي",
         "Phonetic":"waːlabijaːdaja"
      },
      {
         "Linguistic":"وأقصد",
         "Phonetic":"waʔaqasˤda"
      },
      {
         "Linguistic":"تماما",
         "Phonetic":"tamaːmaː"
      },
      {
         "Linguistic":"ليبيا",
         "Phonetic":"lajabijaː"
      }
   ]
}

Rating by chat gpt:

Overall Quality Rating:

The phonetic transcription quality is inconsistent, with significant errors in several entries.
The phonetic transcriptions need considerable improvement.

Overall Rating: Poor to Fair.

@synesthesiam
Copy link
Contributor

synesthesiam commented Oct 1, 2024

Arabic uses mishkal to preprocess the text to add diacritics, which is slow.

It will be faster but less accurate if mishkal isn't installed.

@neurlang
Copy link

Today's retrain had this result:

ælrːjs marjːdj ˈhælbjɑːdj ˈhʔaqsˈːd ːtmaɑmaɑ liːɣajbjɑ

Chat confirms its the most accurate so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants