tensorflow::ops::RegexFullMatch
#include <string_ops.h>
Проверка, соответствует ли входное значение шаблону регулярного выражения.
Краткое описание
Входные данные — это тензор строк произвольной формы. Шаблон — скалярный тензор строк, применяемый ко всем элементам входного тензора. Булевы значения (Истина или Ложь) выходного тензора указывают, соответствует ли входное значение предоставленному шаблону регулярного выражения.
Шаблон следует синтаксису re2 (https://github.com/google/re2/wiki/Syntax)
Примеры:
tf.strings.regex_full_match(["TF lib", "lib TF"], ".*lib$")
Аргументы:
- scope: Объект Scope
- input: Тензор строк, содержащий текст для обработки.
- pattern: Скалярный тензор строк, содержащий регулярное выражение для сопоставления с входом.
Возвращает:
-
Output: Булевый тензор с той же формой, что иinput.
| Конструкторы и деструкторы | |
|---|---|
RegexFullMatch(const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input pattern) |
| Публичные атрибуты | |
|---|---|
operation | |
output | |
| Публичные функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
Публичные атрибуты
operation
Operation operation
output
::tensorflow::Output output
Публичные функции
RegexFullMatch
RegexFullMatch( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input pattern )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/regex-full-match