Skip to content

Instantly share code, notes, and snippets.

@avriiil
Created April 5, 2021 19:21
Show Gist options
  • Save avriiil/a23ba9304c2af593f62186b847658fde to your computer and use it in GitHub Desktop.
Save avriiil/a23ba9304c2af593f62186b847658fde to your computer and use it in GitHub Desktop.
Remove diacritics from Arabic text
# import the dediacritization tool
from camel_tools.utils.dediac import dediac_ar
# apply to your text column
df.tweet_text = df.tweet_text.apply(dediac_ar)
@Taverz
Copy link

Taverz commented Jun 8, 2021

what this "df"?

@313MIM
Copy link

313MIM commented Jun 26, 2021

Same question here: what is "df"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment