T
T
tatarrr952021-04-30 13:55:35
API
tatarrr95, 2021-04-30 13:55:35

How to convert numbers in words to numbers in numbers?

There is an input line, for example, "Mayakovsky twelve, second entrance, third floor, apartment one hundred and one." How to get "Mayakovsky 12, 2nd entrance, 3rd floor, apartment 101" from this?
Is there an API for this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Adamos, 2021-04-30
@Adamos

What is the api here, in half an hour an algorithm is thrown.
Dictionary of matching words to digits and checking if there is a word-order after the word-digit ("million", "thousand", etc.). The result of unseparated blocks of such words is summarized.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question