Google I/O에 참여해 주셔서 감사합니다. 주문형 모든 세션 보기 주문형 시청

tensorflow :: ops :: RegexReplace

#include <string_ops.h>

input 에서 pattern 정규식의 일치를 rewrite 제공된 대체 문자열로 바꿉니다.

요약

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

인수 :

  • 범위 : 범위 개체
  • 입력 : 처리 할 텍스트입니다.
  • pattern : 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)

구조체

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 

연산자 :: tensorflow :: 입력

 operator::tensorflow::Input() const 

연산자 :: tensorflow :: 출력

 operator::tensorflow::Output() const 

공개 정적 함수

ReplaceGlobal

Attrs ReplaceGlobal(
  bool x
)