tensorflow::ops::RegexFullMatch

#include <string_ops.h>

Girilen verinin düzenli ifade kalıbıyla eşleşip eşleşmediğini kontrol edin.

Özet

Giriş, herhangi bir şekle sahip bir dize tensörüdür. Desen, giriş tensörünün her elemanına uygulanan skalar bir dize tensörüdür. Çıkış tensörünün mantıksal değerleri (Doğru veya Yanlış), girişin verilen düzenli ifade deseniyle eşleşip eşleşmediğini gösterir.

Bu kalıp, re2 sözdizimini takip eder ( https://github.com/google/re2/wiki/Syntax ).

Örnekler:

tf.strings.regex_full_match(["TF lib", "lib TF"], ".*lib$") tf.strings.regex_full_match(["TF lib", "lib TF"], ".*TF$")

Argümanlar:

  • kapsam: Bir Kapsam nesnesi
  • Giriş: İşlenecek metnin dize tensörü.
  • Pattern: Girişle eşleşecek düzenli ifadeyi içeren skalar bir dize tensörü.

İadeler:

  • Output : input aynı şekle sahip bir boolean tensör.

Yapıcılar ve Yıkıcılar

RegexFullMatch (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input pattern)

Genel özellikler

operation
output

Kamusal işlevler

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

Genel özellikler

operasyon

Operation operation

çıktı

::tensorflow::Output output

Kamusal işlevler

RegexFullMatch

 RegexFullMatch(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input pattern
)

düğüm

::tensorflow::Node * node() const 

operatör::tensorflow::Giriş

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const