MATXScript
Design Philosophy
Design Philosophy
Quick Start
Installation
Quick Start
Basics
NDArray
Script
Trace
Advanced
Multithreading
Regular Expression
Benchmarks
Benchmark
Examples
End-to-end Deep Learning Example
API
matx
matx package
matx.runtime package
matx.text package
matx.text.emoji module
matx.text.jieba module
matx.text.wordpiece_tokenizer module
matx.vision package
matx.vision.tv_transforms package
Appendix
Supported Syntax and Grammar
MATXScript
matx
matx package
matx.text package
matx.text.emoji module
View page source
matx.text.emoji module
¶
class
matx.text.emoji.
EmojiFilter
(
common_unicode
:
bool
=
True
,
common_unicode_trans
:
bool
=
False
,
common_unicode_trans_alias
:
bool
=
False
,
user_emojis
:
Optional
[
Any
]
=
None
)
[source]
¶
Bases:
object
__init__
(
common_unicode
:
bool
=
True
,
common_unicode_trans
:
bool
=
False
,
common_unicode_trans_alias
:
bool
=
False
,
user_emojis
:
Optional
[
Any
]
=
None
)
→
None
[source]
¶
check_pos
(
s
:
AnyStr
,
pos
:
int
)
→
int
[source]
¶
filter
(
s
:
AnyStr
)
→
AnyStr
[source]
¶
replace
(
s
:
AnyStr
,
repl
:
AnyStr
,
keep_all
:
bool
)
→
AnyStr
[source]
¶