MATLAB 도움말 센터
단어를 결합하여 문서를 문자열로 변환
newStr = joinWords(documents)
newStr = joinWords(documents,delim)
newStr = joinWords(documents)는 각 문서의 단어를 공백으로 결합하여 tokenizedDocument 배열을 string형 배열로 변환합니다.
newStr
documents
tokenizedDocument
예제
newStr = joinWords(documents,delim)은 공백 대신에 구분자 delim을 사용하여 단어를 결합합니다.
delim
모두 축소
단어를 공백으로 결합해 tokenizedDocument 배열을 string형 배열로 변환합니다.
documents = tokenizedDocument([ "an example of a short sentence" "a second short sentence"])
documents = 2×1 tokenizedDocument: 6 tokens: an example of a short sentence 4 tokens: a second short sentence
str = joinWords(documents)
str = 2×1 string "an example of a short sentence" "a second short sentence"
단어를 밑줄로 결합해 tokenizedDocument 배열을 string형 배열로 변환합니다.
str = joinWords(documents,"_")
str = 2×1 string "an_example_of_a_short_sentence" "a_second_short_sentence"
입력 문서로, tokenizedDocument 배열로 지정됩니다.
단어를 결합할 구분자로, string형 스칼라, 문자형 벡터 또는 문자형 벡터를 포함하는 스칼라 셀형 배열로 지정됩니다.
예: "_"
"_"
예: '_'
'_'
예: {'_'}
{'_'}
데이터형: char | string | cell
char
string
cell
출력 텍스트로, string형 배열로 반환됩니다.
데이터형: string
R2017b에 개발됨
context | doclength | doc2cell | string | tokenizedDocument
context
doclength
doc2cell
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
유럽
아시아 태평양
지역별 지사에 문의