Python - Update PyNormalizer interface

This commit is contained in:
Anthony MOI
2020-09-18 16:42:52 -04:00
committed by Anthony MOI
parent bd8f25ee2c
commit b6e7a6e2f7
4 changed files with 29 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
from .. import NormalizedString
from typing import Optional, List
class Normalizer:
@@ -7,6 +8,13 @@ class Normalizer:
Normalizer will return an instance of this class when instantiated.
"""
def normalize(self, normalized: NormalizedString):
""" Normalize the given NormalizedString in-place """
pass
def normalize_str(self, sequence: str) -> str:
""" Normalize the given str """
pass
class BertNormalizer(Normalizer):
""" BertNormalizer