tensorflow:: אופס:: RegexReplace

#include <string_ops.h>

מחליף התאמות של הביטוי הרגולרי של pattern input במחרוזת ההחלפה שסופקה ב- rewrite .

סיכום

הוא עוקב אחר תחביר re2 ( https://github.com/google/re2/wiki/Syntax )

טיעונים:

  • scope: אובייקט Scope
  • קלט: הטקסט שיש לעבד.
  • תבנית: הביטוי הרגולרי שיש להתאים במחרוזות input .
  • rewrite: מחרוזת השכתוב שיש להחליף את ביטוי 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

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

RegexReplace

 RegexReplace(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input pattern,
  ::tensorflow::Input rewrite,
  const RegexReplace::Attrs & attrs
)

צוֹמֶת

::tensorflow::Node * node() const 

מפעיל::tensorflow::קלט

 operator::tensorflow::Input() const 

אופרטור::tensorflow::פלט

 operator::tensorflow::Output() const 

פונקציות סטטיות ציבוריות

החלף גלובלי

Attrs ReplaceGlobal(
  bool x
)