text2num | convert numbers written in French , English
kandi X-RAY | text2num Summary
kandi X-RAY | text2num Summary
Parse and convert numbers written in French, English or Spanish into their digit representation.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Convert a word to a card
- Split a number into a string
- Read the README rst file
text2num Key Features
text2num Examples and Code Snippets
Community Discussions
Trending Discussions on text2num
QUESTION
I have been trying to find a solution to my problem but in vain.
I have a data base of numbers that can be divided into 2 types of written numbers to convert: I want to be able to detect which type of sentence I am dealing with it and then do the conversion.
1. Normal one, where I simply use text2num()
function for the conversion:
Example:
...ANSWER
Answered 2020-Mar-19 at 08:02Seems like its submodule alpha2digit
does support it, you just need to further split
and join
the result to get the expected output:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install text2num
You can use text2num like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page