tensorflow:: ops:: RegexReplace
#include <string_ops.h> input থাকা pattern রেগুলার এক্সপ্রেশনের মিলগুলোকে rewrite এ প্রদত্ত প্রতিস্থাপন স্ট্রিং দিয়ে প্রতিস্থাপন করে।
সারসংক্ষেপ
এটি re2 সিনট্যাক্স ( https://github.com/google/re2/wiki/Syntax ) অনুসরণ করে।
যুক্তি:
- স্কোপ: একটি স্কোপ অবজেক্ট
- ইনপুট: যে টেক্সটটি প্রসেস করা হবে।
- প্যাটার্ন:
inputস্ট্রিংগুলোতে মেলানোর জন্য রেগুলার এক্সপ্রেশন। - পুনর্লিখন:
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) | |
কাঠামো | |
|---|---|
| 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
অপারেটর::টেনসরফ্লো::ইনপুট
operator::tensorflow::Input() const
অপারেটর::টেনসরফ্লো::আউটপুট
operator::tensorflow::Output() const
পাবলিক স্ট্যাটিক ফাংশন
রিপ্লেসগ্লোবাল
Attrs ReplaceGlobal( bool x )