Open guanqun-yang opened 3 years ago
The one more label you pointed out is <unk>
, which exists by default when you instantiate LabelEncoder.
Does this issue need handling?
Does this issue need handling?
Hmm..It's somewhat confusing indeed, maybe we can add proper notes or comments in the documentation to make it clear.
Cool, any other issue that needs handling? I am looking to contribute
Kindly explore opened issues and find something in which you are interested to contribute :-)
Behaviors
The following code snippet is directly taken from
README.md
of the this library (see here). I am expecting the followingn_class
to be equal to 2 (i.e. there are only two classes[1, 2]
) but 3 is returned.Steps to Reproduce the Problem
Directly run the code snippet after
pip install pytorch-nlp
.