The task is to read a passage and convert numbers in their text forms into digit forms. The text numbers can be used to represent Quantity, Dates and Time, Addresses or Positions.

[EX Q]: he broke open the chest and stole four thousand, seven hundred pounds in notes, with a quantity of gold and some silver.
[EX A]: he broke open the chest and stole 4700 in notes, with a quantity of gold and some silver.

[EX Q]: Legacies had also been left to free a certain number of debtors, notably that of one hundred pounds per annum
[EX A]: Legacies had also been left to free a certain number of debtors, notably that of 100 per annum

[EX Q]: (three) was present, at the time of the assassination, at the window from which the shots were fired
[EX A]:
(3) was present, at the time of the assassination, at the window from which the shots were fired