• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2018 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17// The possible codepoint wise normalization operations.
18namespace libtextclassifier3.NormalizationOptions_;
19enum CodepointwiseNormalizationOp : int {
20  NONE = 0,
21
22  // Lower-case the string.
23  LOWERCASE = 1,
24
25  // Upper-case the string.
26  UPPERCASE = 4,
27
28  // Remove whitespace.
29  DROP_WHITESPACE = 8,
30
31  // Remove punctuation.
32  DROP_PUNCTUATION = 16,
33}
34
35namespace libtextclassifier3;
36table NormalizationOptions {
37  // Codepoint wise normalizations to apply, represents a bit field.
38  codepointwise_normalization:uint;
39}
40
41