srviest / char-cnn-text-classification-pytorch

Character-level Convolutional Neural Networks for text classification in PyTorch
Apache License 2.0
175 stars 47 forks source link

Update to getClassWeight() #9

Open rmunro opened 4 years ago

rmunro commented 4 years ago

https://github.com/srviest/char-cnn-text-classification-pytorch/blob/f269894ad40ef4d716b76b24db20379f102cae37/test.py#L44

This line should call getClassWeight() It currently calls the deprecated name for the function get_class_weight()

srviest commented 4 years ago

@rmunro Feel free to send PR, thanks!