roshan-research / hazm

Persian NLP Toolkit
https://www.roshan-ai.ir/hazm/
MIT License
1.19k stars 180 forks source link

Converting formal sentence to informal #342

Open porsan-lab opened 2 months ago

porsan-lab commented 2 months ago

Hello everyone! Great job!

I'm new to the field of NLP and exploring whether this is the right place for a feature request. Specifically, I'm interested in converting formal sentences to informal ones, and vice versa.

For example, I have the sentence: "در حال رفتن به مدرسه هستم و با پای پیاده این مسیر را می روم". I'd like to convert it to: "دارم می رم مدرسه و پیاده می رم".

Regarding whether this functionality can be integrated into the Hazm library, which primarily focuses on Persian NLP tasks like stemming and part-of-speech tagging, adapting it for formal-informal language conversion would require additional considerations.

Implementing such a feature typically involves developing linguistic rules and potentially leveraging machine learning techniques to handle the nuances of informal language. This can be particularly useful for applications involving dialogue generation, text personalization, or educational tools aiming to teach different registers of language.

Would you like further details on how to approach implementing this feature?