텐서플로우:: ops:: RegexReplace

#include <string_ops.h>

input 에서 pattern 정규 표현식과 일치하는 부분을 rewrite 에 제공된 대체 문자열로 바꿉니다.

요약

이는 re2 구문( https://github.com/google/re2/wiki/Syntax )을 따릅니다.

논거:

  • 범위: Scope 객체
  • 입력: 처리할 텍스트.
  • 패턴: input 문자열에서 일치시킬 정규 표현식입니다.
  • rewrite: input 문자열에서 pattern 표현식과 일치하는 부분에 대체될 재작성 문자열입니다.

선택적 속성( Attrs 참조):

  • replace_global: True인 경우, 대체는 전역적으로 수행됩니다(즉, 각 입력 문자열에서 pattern 정규 표현식과 일치하는 모든 부분이 다시 작성됩니다). 그렇지 않으면 첫 번째 pattern 일치에 대해서만 rewrite 이 수행됩니다.

보고:

  • 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)

구조

텐서플로우:: ops:: RegexReplace:: Attrs

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
)