Main Content

string

스칼라 문서를 string형 벡터로 변환

설명

예제

words = string(document)는 스칼라 tokenizedDocument를 단어로 구성된 string형 배열로 변환합니다.

예제

모두 축소

토큰화된 스칼라 문서를 단어로 구성된 string형 배열로 변환합니다.

document = tokenizedDocument("an example of a short sentence")
document = 
  tokenizedDocument:

   6 tokens: an example of a short sentence

words = string(document)
words = 1x6 string
    "an"    "example"    "of"    "a"    "short"    "sentence"

입력 인수

모두 축소

입력 문서로, 스칼라 tokenizedDocument 객체로 지정됩니다.

출력 인수

모두 축소

출력 단어로, string형 벡터로 반환됩니다.

버전 내역

R2017b에 개발됨