mindspore.dataset.text.NormalizeForm

class mindspore.dataset.text.NormalizeForm(value)[source]

An enumeration for NormalizeUTF8.

Possible enumeration values are: NormalizeForm.NONE, NormalizeForm.NFC, NormalizeForm.NFKC, NormalizeForm.NFD, NormalizeForm.NFKD.

  • NormalizeForm.NONE: do nothing for input string tensor.

  • NormalizeForm.NFC: normalize with Normalization Form C.

  • NormalizeForm.NFKC: normalize with Normalization Form KC.

  • NormalizeForm.NFD: normalize with Normalization Form D.

  • NormalizeForm.NFKD: normalize with Normalization Form KD.