도움말 센터도움말 센터
텍스트의 언어 검출
language = corpusLanguage(str)
corpusLanguage를 사용하여 텍스트의 언어를 검출할 수 있습니다.
corpusLanguage
이 함수는 한국어, 영어, 일본어, 독일어 텍스트를 지원합니다.
예제
language = corpusLanguage(str)은 str에 지정된 텍스트의 언어를 검출합니다.
language
str
모두 축소
텍스트로 구성된 string형 배열의 언어를 검출합니다.
str = [ "恋の悩みで 苦しむ。" "空の星が輝きを増している。"]; language = corpusLanguage(str)
language = 'ja'
입력 텍스트로, string형 배열, 문자형 벡터 또는 문자형 벡터로 구성된 셀형 배열로 지정됩니다.
예: ["An example of a short sentence."; "A second short sentence."]
["An example of a short sentence."; "A second short sentence."]
데이터형: string | char | cell
string
char
cell
'en'
'ja'
'de'
'ko'
검출된 언어로, 다음 중 하나로 반환됩니다.
'en' – 검출된 영어 텍스트
'ja' – 검출된 일본어 텍스트
'de' – 검출된 독일어 텍스트
'ko' – 검출된 한국어 텍스트
R2018b에 개발됨
tokenizedDocument | tokenDetails | addSentenceDetails | addPartOfSpeechDetails | splitSentences | abbreviations | topLevelDomains | addLanguageDetails | addLemmaDetails
tokenizedDocument
tokenDetails
addSentenceDetails
addPartOfSpeechDetails
splitSentences
abbreviations
topLevelDomains
addLanguageDetails
addLemmaDetails
다음 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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office