Spec-Zone.ru › TensorFlow C++ 2.3

tensorflow::ops::RegexFullMatch

#include <string_ops.h>

Проверка соответствия входных данных шаблону регулярного выражения.

Краткое описание

Входные данные — это тензор строк произвольной формы. Шаблон — это скалярный тензор строк, который применяется ко всем элементам тензора входных данных. Булевы значения (True или False) тензора вывода указывают, соответствует ли входной элемент предоставленному шаблону регулярного выражения.

Шаблон следует синтаксису re2 (https://github.com/google/re2/wiki/Syntax)

Примеры:

tf.strings.regex_full_match(["TF lib", "lib TF"], ".*lib$") tf.strings.regex_full_match(["TF lib", "lib TF"], ".*TF$")

Аргументы:

  • scope: Объект Scope
  • input: Тензор строк с текстом для обработки.
  • pattern: Скалярный тензор строк, содержащий регулярное выражение для сопоставления с входными данными.

Возвращаемое значение:

  • Output: Булевой тензор с той же формой, что и input.
Конструкторы и деструкторы
RegexFullMatch(const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input pattern)
Общедоступные атрибуты
operation
Operation
output
::tensorflow::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 

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/regex-full-match

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API