You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`lowercase`: (boolean) whether to convert strings to lowercase. Default is False.
18
22
19
23
-`policy`: (str) rule to remove patterns from text. Valid policy values are:
20
-
+**"all"**,
21
-
+**"abbreviations"**,
22
-
+**"dosages"**
24
+
-**`"all"`** – replaces both abbreviations and dosages
25
+
-**`"abbreviations"`** – replaces all abbreviations with their full forms
26
+
> e.g., `"oral sol"` → `"oral solution"`
27
+
-**`"dosages"`** – converts dosages to a standardized format
28
+
> e.g., `"10 million units"` → `"10000000 unt"`
29
+
30
+
**Default:**`"all"`
31
+
23
32
24
33
25
34
See [Spark NLP Workshop](https://github.com/JohnSnowLabs/spark-nlp-workshop/blob/master/tutorials/Certification_Trainings/Healthcare/23.Drug_Normalizer.ipynb) for more examples of usage.
0 commit comments