my challenge is to convert ten and one which is in words to numbers as 10 and 1 in the input sentence:
example_input <- paste0("I have ten apple and one orange")
Numbers may change based on user requirement, input sentence can be tokenized:
my_output_toget<-paste("I have 10 apple and 1 orange")