wanilyer

Results 3 comments of wanilyer

感谢您的回复 我用都是0.5.0的版本,直接pip install fastNLP安装的 报错的应该是下面这行 https://github.com/fastnlp/fastNLP/blob/ba0269f23e72e446ddfdbda32edccfb694b76b4f/fastNLP/modules/decoder/crf.py#L295

**好像不行,还是报同样的错哈。** **另外还有下面这行,会报错** https://github.com/fastnlp/fastNLP/blob/ba0269f23e72e446ddfdbda32edccfb694b76b4f/fastNLP/embeddings/embedding.py#L208 `TypeError: tuple expected at most 1 arguments, got 2` 我改成 ` return torch.Size((self.num_embedding, self._embed_size))` 这样就没问题了

我把这一行注释了之后,后面又发现了两个地方也有这个问题,我没在往下注释了 https://github.com/fastnlp/fastNLP/blob/ba0269f23e72e446ddfdbda32edccfb694b76b4f/fastNLP/modules/decoder/crf.py#L314-L315 https://github.com/fastnlp/fastNLP/blob/ba0269f23e72e446ddfdbda32edccfb694b76b4f/fastNLP/modules/decoder/crf.py#L323