update
This commit is contained in:
@@ -160,7 +160,7 @@ def normalize_persian_arabic_text(text):
|
||||
# 'ک' (U+06A9 - Persian Kaf) -> 'ك' (U+0643 - Arabic Kaf)
|
||||
# 'ی' (U+06CC - Persian Yeh) -> 'ي' (U+064A - Arabic Yeh)
|
||||
text = str(text)
|
||||
text = text.replace('ک', 'ك') # Persian Kaf to Arabic Kaf
|
||||
# text = text.replace('ک', 'ك') # Persian Kaf to Arabic Kaf
|
||||
text = text.replace('ی', 'ي') # Persian Yeh to Arabic Yeh
|
||||
|
||||
return text
|
||||
|
||||
Reference in New Issue
Block a user