NLP_sentiment_classification icon indicating copy to clipboard operation
NLP_sentiment_classification copied to clipboard

NLP Classification Tutorial with PyTorch

Results 2 NLP_sentiment_classification issues
Sort by recently updated
recently updated
newest added

안녕하세요 RNN code 수행 시 아래와 같이 input_dim error가 뜨네요. model = RNN(**params) code run [error] --------------------------------------------------------------------------- NameError Traceback (most recent call last) in () ----> 1 model = RNN(**params)...

``` def sort_by_sequence_length(self, x, y, seq_len): sorted_idx = np.argsort(np.array(seq_len))[::-1] x = Variable(torch.LongTensor(np.array(x)[sorted_idx])) y = Variable(torch.LongTensor(np.array(y)[sorted_idx])) seq_len = Variable(torch.LongTensor(np.array(seq_len)[sorted_idx])) ``` 함수에서 자꾸 아래와 같은 에러가 나는데.. TypeError: can't convert np.ndarray of...