fastnlp / fastNLP

fastNLP: A Modularized and Extensible NLP Framework. Currently still in incubation.
https://gitee.com/fastnlp/fastNLP
Apache License 2.0
3.06k stars 450 forks source link

i guess we need to add something to help the user debug #73

Closed 2017alan closed 5 years ago

2017alan commented 6 years ago

i find a bug ,that is label's dictionary is wrong ,however my IDE tell me there is something wrong with my loss. and it take me some hours to read all the code to check it .

so i think can there add some module,like assert function in python ,to avoid it . and in dataprocess's error should not occur in the trainner part.

the wrong line number is 243.

thank you.

FengZiYjun commented 6 years ago

@2017alan fastNLP has logging in trainer and tester. You can add more logs wherever you need.

2017alan commented 6 years ago

ok