tensorflow:: ops:: RegexReplace

#include <string_ops.h>

يستبدل هذا الأمر تطابقات التعبير pattern في input بسلسلة الاستبدال المقدمة في rewrite .

ملخص

وهو يتبع صيغة re2 ( https://github.com/google/re2/wiki/Syntax )

الحجج:

  • النطاق: كائن النطاق
  • المدخلات: النص المراد معالجته.
  • النمط: التعبير النمطي المراد مطابقته في سلاسل input .
  • إعادة الكتابة: سلسلة إعادة الكتابة التي سيتم استبدالها بتعبير pattern حيث يتم مطابقته في سلاسل input .

السمات الاختيارية (انظر Attrs ):

  • replace_global: إذا كانت القيمة True، فإن الاستبدال يكون شاملاً (أي تتم إعادة كتابة جميع تطابقات التعبير pattern في كل سلسلة إدخال)، وإلا فإن استبدال rewrite يتم فقط لأول تطابق pattern .

المرتجعات:

  • Output : النص بعد تطبيق مطابقة النمط وإعادة كتابة الاستبدال.

البناة والمدمرون

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)

السمات العامة

operation
output

الوظائف العامة

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

الدوال الثابتة العامة

ReplaceGlobal (bool x)

الهياكل

tensorflow:: ops:: RegexReplace:: Attrs

مُعدِّلات السمات الاختيارية لـ RegexReplace .

السمات العامة

عملية

Operation operation

المخرجات

::tensorflow::Output output

الوظائف العامة

استبدال التعبيرات النمطية

 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
)

العقدة

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

الدوال الثابتة العامة

استبدال عالمي

Attrs ReplaceGlobal(
  bool x
)