tensor akışı:: işlem:: RegexDeğiştir

#include <string_ops.h>

input pattern normal ifadesinin eşleşmelerini, rewrite işlevinde sağlanan değiştirme dizesiyle değiştirir.

Özet

Re2 sözdizimini takip eder ( https://github.com/google/re2/wiki/Syntax )

Argümanlar:

  • kapsam: Bir Kapsam nesnesi
  • giriş: İşlenecek metin.
  • model: input dizelerinde eşleştirilecek normal ifade.
  • yeniden yazma: input dizelerinde eşleştiği yerde pattern ifadesinin yerine geçecek yeniden yazma dizesi.

İsteğe bağlı özellikler (bkz. Attrs ):

  • replacement_global: True ise, değiştirme globaldir (yani, her giriş dizesindeki pattern düzenli ifadesinin tüm eşleşmeleri yeniden yazılır), aksi takdirde rewrite ikamesi yalnızca ilk pattern eşleşmesi için yapılır.

İadeler:

  • Output : Desen eşleştirmesi ve yeniden yazma değişikliği uygulandıktan sonra 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

Kamu işlevleri

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Genel statik işlevler

ReplaceGlobal (bool x)

Yapılar

tensorflow:: ops:: RegexReplace:: Öznitelikler

RegexReplace için isteğe bağlı öznitelik ayarlayıcılar.

Genel özellikler

operasyon

Operation operation

çıktı

::tensorflow::Output output

Kamu işlevleri

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 

operatör::tensorflow::Giriş

 operator::tensorflow::Input() const 

operatör::tensorflow::Çıktı

 operator::tensorflow::Output() const 

Genel statik işlevler

DeğiştirGlobal

Attrs ReplaceGlobal(
  bool x
)