ShannonAI / mrc-for-flat-nested-ner

Code for ACL 2020 paper `A Unified MRC Framework for Named Entity Recognition`
662 stars 118 forks source link

Cannot import TensorMetric #54

Closed minstar closed 4 years ago

minstar commented 4 years ago

My pytorch-lightning version is 0.10.0 and I think the version has been updated thus cannot import TensorMetric in metrics.query_span_f1.py So, may I ask for the environment details of your experiment?

YuxianMeng commented 4 years ago

My pytorch-lightning version is 0.10.0 and I think the version has been updated thus cannot import TensorMetric in metrics.query_span_f1.py So, may I ask for the environment details of your experiment?

pytorch-lightning==0.9.0 should work. We have updated the requirements.txt, and thanks for your feedback!

minstar commented 4 years ago

Thank you for your fast reply!