From d5fd32a5721d2a767fd583f05cd52d842ae2151e Mon Sep 17 00:00:00 2001 From: Jim Geovedi Date: Sun, 23 Jul 2017 22:56:48 +0700 Subject: [PATCH] added known currencies --- spacy/lang/id/norm_exceptions.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/spacy/lang/id/norm_exceptions.py b/spacy/lang/id/norm_exceptions.py index 7c2a2e827..758d9c389 100644 --- a/spacy/lang/id/norm_exceptions.py +++ b/spacy/lang/id/norm_exceptions.py @@ -1,4 +1,13 @@ # coding: utf8 from __future__ import unicode_literals +_exc = { + "Rp": "$", + "RMB": "$", +} + NORM_EXCEPTIONS = {} + +for string, norm in _exc.items(): + NORM_EXCEPTIONS[string] = norm + NORM_EXCEPTIONS[string.title()] = norm