forked from facebookresearch/AugLy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
143 lines (140 loc) · 3.56 KB
/
__init__.py
File metadata and controls
143 lines (140 loc) · 3.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
#!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
# pyre-unsafe
from augly.text.composition import Compose, OneOf
from augly.text.functional import (
apply_lambda,
change_case,
contractions,
encode_text,
get_baseline,
insert_punctuation_chars,
insert_text,
insert_whitespace_chars,
insert_zero_width_chars,
merge_words,
replace_bidirectional,
replace_fun_fonts,
replace_similar_chars,
replace_similar_unicode_chars,
replace_text,
replace_upside_down,
replace_words,
simulate_typos,
split_words,
swap_gendered_words,
)
from augly.text.intensity import (
apply_lambda_intensity,
base64_intensity,
change_case_intensity,
contractions_intensity,
encode_text_intensity,
get_baseline_intensity,
insert_punctuation_chars_intensity,
insert_text_intensity,
insert_whitespace_chars_intensity,
insert_zero_width_chars_intensity,
merge_words_intensity,
replace_bidirectional_intensity,
replace_fun_fonts_intensity,
replace_similar_chars_intensity,
replace_similar_unicode_chars_intensity,
replace_text_intensity,
replace_upside_down_intensity,
replace_words_intensity,
simulate_typos_intensity,
split_words_intensity,
swap_gendered_words_intensity,
)
from augly.text.transforms import (
ApplyLambda,
ChangeCase,
Contractions,
EncodeTextTransform,
GetBaseline,
InsertPunctuationChars,
InsertText,
InsertWhitespaceChars,
InsertZeroWidthChars,
MergeWords,
ReplaceBidirectional,
ReplaceFunFonts,
ReplaceSimilarChars,
ReplaceSimilarUnicodeChars,
ReplaceText,
ReplaceUpsideDown,
ReplaceWords,
SimulateTypos,
SplitWords,
SwapGenderedWords,
)
__all__ = [
"Compose",
"OneOf",
"ApplyLambda",
"ChangeCase",
"Contractions",
"EncodeTextTransform",
"GetBaseline",
"InsertPunctuationChars",
"InsertText",
"InsertWhitespaceChars",
"InsertZeroWidthChars",
"MergeWords",
"ReplaceBidirectional",
"ReplaceFunFonts",
"ReplaceSimilarChars",
"ReplaceSimilarUnicodeChars",
"ReplaceText",
"ReplaceUpsideDown",
"ReplaceWords",
"SimulateTypos",
"SplitWords",
"SwapGenderedWords",
"apply_lambda",
"change_case",
"contractions",
"encode_text",
"get_baseline",
"insert_punctuation_chars",
"insert_text",
"insert_whitespace_chars",
"insert_zero_width_chars",
"merge_words",
"replace_bidirectional",
"replace_fun_fonts",
"replace_similar_chars",
"replace_similar_unicode_chars",
"replace_text",
"replace_upside_down",
"replace_words",
"simulate_typos",
"split_words",
"swap_gendered_words",
"apply_lambda_intensity",
"base64_intensity",
"change_case_intensity",
"contractions_intensity",
"encode_text_intensity",
"get_baseline_intensity",
"insert_punctuation_chars_intensity",
"insert_text_intensity",
"insert_whitespace_chars_intensity",
"insert_zero_width_chars_intensity",
"merge_words_intensity",
"replace_bidirectional_intensity",
"replace_fun_fonts_intensity",
"replace_similar_chars_intensity",
"replace_similar_unicode_chars_intensity",
"replace_text_intensity",
"replace_upside_down_intensity",
"replace_words_intensity",
"simulate_typos_intensity",
"split_words_intensity",
"swap_gendered_words_intensity",
]