Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

텍스트 분할

항목값
화면 이름Text segmentation
식별자textSegmentationV1
지원 실행 방식Batch, Faster, Streaming
범주문자열 (String)
반환 자료형Array<String>

슬라이딩 윈도 방식으로 일련의 텍스트 조각을 추출합니다.

입력 인자

이름지정 여부자료형의미와 조건
Expression필수Expression<String>분할할 본문 텍스트입니다.
Length필수Expression<Integer>텍스트 조각의 길이를 단어 수로 지정합니다.
Overflow선택Expression<Integer>인접 조각 사이에 겹칠 수 있는 단어 수입니다.

입출력 예시

예시 1: 기본 동작

짧은 텍스트를 분할하며 마지막 남은 부분도 별도 조각으로 만듭니다.

인자 값:

  • Expression: string
  • Length: 3
  • Overflow: 1
string출력
hello world this is a test string[ hello world this, this is a, a test string, string ]

예시 2: 기본 동작

overflow가 음수인 경우입니다.

인자 값:

  • Expression: string
  • Length: length
  • Overflow: overflow
stringlengthoverflow출력
She sells sea shells by2-1[ She sells, shells by ]

예시 3: 기본 동작

overflow를 사용한 긴 텍스트에서 마지막 조각이 더 짧은 경우입니다.

인자 값:

  • Expression: string
  • Length: length
  • Overflow: overflow
stringlengthoverflow출력
hello world this is a larger test with overlap, the nature of the human spirit is strange as such i ...103[ hello world this is a larger test with overlap, the, with overlap, the nature of the human spirit ...

예시 4: 기본 동작

overflow가 0이고 마지막 조각이 목표 길이보다 짧은 경우입니다.

인자 값:

  • Expression: string
  • Length: 3
  • Overflow: null
string출력
hello world this is a test string[ hello world this, is a test, string ]

예시 5: 기본 동작

overflow 없이 길이로 정확하게 나누어지는 경우입니다.

인자 값:

  • Expression: string
  • Length: length
  • Overflow: overflow
stringlengthoverflow출력
hello world this is a test string without overlap30[ hello world this, is a test, string without overlap ]

예시 6: null 처리

overflow 없이 길이로 정확하게 나누어지는 경우입니다.

인자 값:

  • Expression: string
  • Length: length
  • Overflow: overflow
stringlengthoverflow출력
nullnullnullnull

예시 7: null 처리

overflow 없이 길이로 정확하게 나누어지는 경우입니다.

인자 값:

  • Expression: string
  • Length: length
  • Overflow: overflow
stringlengthoverflow출력
null1nullnull

예시 8: null 처리

overflow 없이 길이로 정확하게 나누어지는 경우입니다.

인자 값:

  • Expression: string
  • Length: length
  • Overflow: overflow
stringlengthoverflow출력
Hello worldnullnullnull

긴 구조값 안의 줄임표는 생략한 내용을 나타냅니다.