tensorflow:: ops:: RegexReplace

#include <string_ops.h>

input में pattern रेगुलर एक्सप्रेशन के मिलान को rewrite में दी गई रिप्लेसमेंट स्ट्रिंग से बदल देता है।

सारांश

यह re2 सिंटैक्स का अनुसरण करता है ( https://github.com/google/re2/wiki/Syntax )

तर्क:

  • स्कोप: एक स्कोप ऑब्जेक्ट
  • इनपुट: संसाधित किया जाने वाला पाठ।
  • पैटर्न: input स्ट्रिंग में मिलान किए जाने वाले रेगुलर एक्सप्रेशन।
  • rewrite: input स्ट्रिंग्स में जहां भी pattern एक्सप्रेशन मेल खाता है, वहां उसके स्थान पर प्रतिस्थापित की जाने वाली रीराइट स्ट्रिंग।

वैकल्पिक विशेषताएँ (देखें 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)

संरचनाएँ

टेन्सरफ्लो::ऑप्स::रेगेक्सरिप्लेस::एट्रिब्यूट्स

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() const 

ऑपरेटर::टेन्सरफ्लो::आउटपुट

 operator::tensorflow::Output() const 

सार्वजनिक स्थैतिक फ़ंक्शन

वैश्विक बदलें

Attrs ReplaceGlobal(
  bool x
)