Replies: 11 comments 48 replies
-
Hi there! This seems like a pretty legit idea to work on, so definitely will look into it. Also, if you have any thoughts about making this feature possible then don't hesitate to note it down here :D The code's open so hope that you will also have a look at it to brainstorm a little bit. Last but not least, <3 |
Beta Was this translation helpful? Give feedback.
-
glad to have a wave back! |
Beta Was this translation helpful? Give feedback.
-
Alright 👊 If you're interested, then we can convert this Issue into a GitHub Discussion and then develop the feature together, since it'll definitely require some reverse engineering over the already-existing Avro Dictionary. |
Beta Was this translation helpful? Give feedback.
-
lemme know if you run into errors. The approach i mentioned should work :D @TanimSk if you want to we can work together on making this a better project ... |
Beta Was this translation helpful? Give feedback.
-
Looking over the codes I have a few questions Is it possible not to bundle dependencies such as Say i want to bundle it inside a django project. I dont have a hard dependency on either Suggestions :
Also it seems that you are not using type-hints properly.. I have seen many cases of Any ( which can be strongly typed ) |
Beta Was this translation helpful? Give feedback.
-
@TanimSk Let us know about your progress once you're free :P |
Beta Was this translation helpful? Give feedback.
-
@hitblast Actually I have bunch of projects in this month. I'll work on avro as soon as I get free, btw do you use any social media? I would love to connect with you. You can mail me if you dont wanna make your account public :D |
Beta Was this translation helpful? Give feedback.
-
@baseplate-admin @TanimSk Well, I have launched avro.py 0.1.5 ahead of the release of the feature Tanim's currently working on in order to force compatibility with avro.py-cli. I hope we'll have a version 0.1.6 as soon as he's done prototyping and we're done doing fault-checks! |
Beta Was this translation helpful? Give feedback.
-
@TanimSk Based on our previous conversation, should I start working on the "Pythonized" Avro Dictionary? This way you could straight up start working on the newer suggested patterns. |
Beta Was this translation helpful? Give feedback.
-
Hi there, @hitblast. Hopefully, all is going well. {
...
[
{
"find": "A`",
"replace": "া",
"reverse": "a"
},
{
"replace": "আ",
"reverse": "a"
},
....
],
"exceptions":{
"ফেসবুক": "Facebook",
"গুগল": "Google",
},
"vowel": "aeiou",
"consonant": "bcdfghjklmnpqrstvwxyz",
"casesensitive": "oiudgjnrstyz",
"number": "0123456789",
# For reverse parsing
"shorborno": "অআইঈউঊঊএঐওঔ",
"kar": {'া', 'ি', 'ী', 'ু', 'ূ', 'ৃ', 'ে', 'ৈ', 'ো', 'ৌ'},
"ignore": {"ঁ", "।", "?", ".", "-", ";"}
} Some examples: import avro
print(avro.reverse('তোমার বাসায় সবাই কেমন আছে?'))
print(avro.reverse('আমি যা বলি তাই করি'))
print(avro.reverse('আসসালামু আলাইকুম ভাইজান। কি খবর?'))
print(avro.reverse('তুমি কি খেতে ভালোবাসো?'))
print(avro.reverse("কাকতাড়ুয়া"))
print(avro.reverse("কাঁকন"))
print(avro.reverse("রাহিম, তোমাকে করিম ডাকছে। এখন কি রওনা দেবে?"))
print(avro.reverse('আমার সোনার বাংলা।'))
print(avro.reverse('গুগল'))
print(avro.reverse('ফেসবুক')) output:
Hopefully, you'll sync up soon and have a look at my repo. If everything seems perfect, I will send a PR 🥂 |
Beta Was this translation helpful? Give feedback.
-
Well it's been long since the feature has been implemented and released, so I guess I'll close this discussion here. |
Beta Was this translation helpful? Give feedback.
-
Details:
Add a reverse parser, for example:
output = avro.reverse_parse("ভালো")
print(output)
Desired output:
valo
Reason:
Actually I am building a chatbot for processing Bangla language typed in English alphabets. Cause people nowadays chat in bangla using English alphabets for saving time and efforts. Moreover, adding this functionality will give this project more flexibility.
I highly appreciate that you guys are still maintaining this project.
Beta Was this translation helpful? Give feedback.
All reactions