joinWords
단어를 결합하여 문서를 문자열로 변환
설명
예제
단어를 결합해 문서를 문자열로 변환하기
단어를 공백으로 결합해 tokenizedDocument
배열을 string형 배열로 변환합니다.
documents = tokenizedDocument([ "an example of a short sentence" "a second short sentence"])
documents = 2x1 tokenizedDocument: 6 tokens: an example of a short sentence 4 tokens: a second short sentence
str = joinWords(documents)
str = 2x1 string
"an example of a short sentence"
"a second short sentence"
단어를 밑줄로 결합해 tokenizedDocument
배열을 string형 배열로 변환합니다.
str = joinWords(documents,"_")
str = 2x1 string
"an_example_of_a_short_sentence"
"a_second_short_sentence"
입력 인수
documents
— 입력 문서
tokenizedDocument
배열
입력 문서로, tokenizedDocument
배열로 지정됩니다.
delim
— 단어를 결합할 구분자
string형 스칼라 | 문자형 벡터 | 스칼라 셀형 배열
단어를 결합할 구분자로, string형 스칼라, 문자형 벡터 또는 문자형 벡터를 포함하는 스칼라 셀형 배열로 지정됩니다.
예: "_"
예: '_'
예: {'_'}
데이터형: char
| string
| cell
출력 인수
newStr
— 출력 텍스트
string형 배열
출력 텍스트로, string형 배열로 반환됩니다.
데이터형: string
버전 내역
R2017b에 개발됨
참고 항목
context
| doclength
| doc2cell
| string
| tokenizedDocument
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)