4
를 계산 RWeka를 사용할 수없는, 내가 사전 목록에 대해 DocumentTermMatrix을 비교하고있어 합계를 계산하려면 두 단어를 포함하고이를 수행하는 방법을 알아낼 수 없습니다.오류 TM를 사용하여 문구
TrigramTokenizer <- function(x) NGramTokenizer(x,
Weka_control(min = 3, max = 3))
tdm <- TermDocumentMatrix(v.corpus,
control = list(tokenize = TrigramTokenizer))
그러나 다음과 같은 오류 메시지가 얻을 :
나는 RWeka을 시도Error in simple_triplet_matrix(i = i, j = j, v = as.numeric(v), nrow = length(allTerms), :
'i, j, v' different lengths
In addition: Warning messages:
1: In parallel::mclapply(x, termFreq, control) :
all scheduled cores encountered errors in user code
2: In is.na(x) : is.na() applied to non-(list or vector) of type 'NULL'
3: In simple_triplet_matrix(i = i, j = j, v = as.numeric(v), nrow = length(allTerms), :
NAs introduced by coercion.
당신이 오류 메시지와 함께 도와 줄 수 있습니까?를
감사합니다.
과 같아야합니다 (http://stackoverflow.com/q/18504559/1036500)? – Ben
[최소 작업 예제] (http://stackoverflow.com/help/mcve)가 없으므로 투표를 끝내기로 결심했습니다. –