tensorflow :: ops :: RegexDeğiştir
#include <string_ops.h>
Karşılaşmalar değiştirir pattern
düzenli ifadenin input
sağlanan yedek iple rewrite
.
Özet
Re2 sözdizimini takip eder ( https://github.com/google/re2/wiki/Syntax )
Argümanlar:
- kapsam: Bir Scope nesnesi
- girdi: İşlenecek metin.
- desen:
input
dizelerinde eşleştirilecek normal ifade. - rewrite:
input
dizelerinde eşleştirildiğipattern
ifadesinin yerine geçecek yeniden yazma dizesi.
İsteğe bağlı özellikler (bkz. Attrs
):
- replace_global: True ise, değiştirme globaldir (yani, her girdi dizesindeki
pattern
normal ifadesinin tüm eşleşmeleri yeniden yazılır), aksi takdirderewrite
ikamesi yalnızca ilkpattern
eşleşmesi için yapılır.
İadeler:
-
Output
: Desen eşleşmesi uygulandıktan ve değiştirmeyi yeniden yazdıktan sonraki metin.
Yapıcılar ve Yıkıcılar | |
---|---|
RegexReplace (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input pattern, :: tensorflow::Input rewrite) | |
RegexReplace (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input pattern, :: tensorflow::Input rewrite, const RegexReplace::Attrs & attrs) |
Genel özellikler | |
---|---|
operation | |
output |
Kamusal işlevler | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Genel statik işlevler | |
---|---|
ReplaceGlobal (bool x) |
Yapılar | |
---|---|
tensorflow :: ops :: RegexReplace :: Attrs | RegexReplace için isteğe bağlı öznitelik belirleyiciler. |
Genel özellikler
operasyon
Operation operation
çıktı
::tensorflow::Output output
Kamusal işlevler
RegexDeğiştir
RegexReplace( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input pattern, ::tensorflow::Input rewrite )
RegexDeğiştir
RegexReplace( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input pattern, ::tensorflow::Input rewrite, const RegexReplace::Attrs & attrs )
düğüm
::tensorflow::Node * node() const
operator :: tensorflow :: Girdi
operator::tensorflow::Input() const
operator :: tensorflow :: Çıktı
operator::tensorflow::Output() const
Genel statik işlevler
ReplaceGlobal
Attrs ReplaceGlobal( bool x )