تينسورفلو :: العمليات :: Regex: استبدل
#include <string_ops.h>
يستبدل مطابقة التعبير العادي pattern
في input
بسلسلة الاستبدال المتوفرة في rewrite
.
ملخص
يتبع بناء الجملة re2 ( https://github.com/google/re2/wiki/Syntax )
الحجج:
- النطاق: كائن النطاق
- الإدخال: النص المراد معالجته.
- النمط: التعبير العادي المطلوب مطابقته في سلاسل
input
. - إعادة الكتابة: سلسلة إعادة الكتابة التي سيتم استبدالها بتعبير
pattern
حيث تتم مطابقتها في سلاسلinput
.
السمات الاختيارية (انظر Attrs
):
- replace_global: إذا كان صحيحًا ، يكون الاستبدال عامًا (أي ، تتم إعادة كتابة جميع مطابقات التعبير العادي
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
الوظائف العامة
Regex: استبدل
RegexReplace( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input pattern, ::tensorflow::Input rewrite )
Regex: استبدل
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 :: Output
operator::tensorflow::Output() const
وظائف ثابتة عامة
استبدال العالمية
Attrs ReplaceGlobal( bool x )
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2020-04-20 (حسب التوقيت العالمي المتفَّق عليه)
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"لا يحتوي على المعلومات التي أحتاج إليها."
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"الخطوات معقدة للغاية / كثيرة جدًا."
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"المحتوى قديم."
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"ثمة مشكلة في الترجمة."
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"مشكلة في العيّنات / التعليمات البرمجية"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"غير ذلك"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"يسهُل فهم المحتوى."
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"ساعَدني المحتوى في حلّ مشكلتي."
},{
"type": "thumb-up",
"id": "otherUp",
"label":"غير ذلك"
}]