ngrams가 string형 배열, 셀형 배열 또는 pattern 배열인 경우 크기는 numNgrams×maxN입니다. 여기서 numNgrams는 n-gram의 개수이고, maxN은 가장 큰 n-gram의 길이입니다. ngrams가 문자형 벡터인 경우 이는 단일 단어(유니그램(unigram))를 나타냅니다.
ngrams(i,j)의 값은 i번째 n-gram 중 j번째 단어에 해당합니다. i번째 n-gram의 단어 수가 maxN보다 작은 경우 ngrams의 i번째 행의 나머지 요소는 비어 있어야 합니다.
ngrams에 여러 개의 n-gram 또는 패턴이 포함된 경우 함수는 대응되는 문서에 해당 n-gram이 하나라도 나타나면 1을 반환합니다.
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.