Return an updated and cleaned Text object from a `text` Text object normalizing some pucntuations around some name and acronyms.
(text)
| 361 | |
| 362 | |
| 363 | def clean(text): |
| 364 | """ |
| 365 | Return an updated and cleaned Text object from a `text` Text object |
| 366 | normalizing some pucntuations around some name and acronyms. |
| 367 | """ |
| 368 | if not text: |
| 369 | return text |
| 370 | text = text.replace('A. M.', 'A.M.') |
| 371 | return text |
| 372 | |
| 373 | |
| 374 | # set of common prefixes that can be trimmed from a name |