Hi, looks like You are concatenating strings "python wize" ('100' + '1' = '1001') and not make a sum with numbers. So converting to integers might do the trick, i.e like int('100') + int('1') = 101
Hi, looks like You are concatenating strings "python wize" ('100' + '1' = '1001') and not make a sum with numbers. So converting to integers might do the trick, i.e like int('100') + int('1') = 101
Not something you get asked every day! Don't forget Portuguese is inflected by gender. Just maybe if you find a list of words you could use NLP processing to do this.
Hi, looks like You are concatenating strings "python wize" ('100' + '1' = '1001') and not make a sum with numbers. So converting to integers might do the trick, i.e like int('100') + int('1') = 101
Hi @tomjerry.vl. I did not use any transformer her, just pointing to the fact it seems you are concatenating strings and not making a sum from number/integerss:
Strings: '100' + '1' = '1001'
Numbers, converting strings to integers before s: int('100') + int('1') = 101
If You need to convert strings to integers in FME there is several transformers (or Python for that sake) which can be used as AttributeCreator, AttributeManager. In both cases set up the expression with the Arithmetic Manager.
I don't have a full answer for you but this previous question may be a good place to start as there are a lot of solutions offered by the Community. Some of the suggestions included the use of python modules for going from words to numbers. I believe something like num2words supports Brazilian Portuguese if that's something you might like to explore. Or if you wanted to create your own solution, ebygomm's workspace template may be a good place to start, but I definitely see your problem with the tens/hundreds being a bit more difficult to handle than in English. Hope this offers some more options to try!
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.