uditarora / ood-text-emnlp Goto Github PK
View Code? Open in Web Editor NEWCode for EMNLP'21 paper "Types of Out-of-Distribution Texts and How to Detect Them"
License: MIT License
Code for EMNLP'21 paper "Types of Out-of-Distribution Texts and How to Detect Them"
License: MIT License
Dear Authors,
A huge thanks for outsourcing your code, your very clear poster presentation, and answering the question during the conference :) . This is a great paper and very valuable code.
Cheers,
Pierre
Hi,
I was trying to run the model for mnli
in distribution and snli
out of distribution dataset using the following command (The mnli
model is already pretained)
id_data="mnli"
ood_data="snli"
python3 msp_eval.py --model_path roberta_ckpts/roberta-$id_data --dataset_name $ood_data --fname ${id_data}_$ood_data --batch_size 8
However as snli
has -1 class label showing the following error in criterion
function which is nn.CrossEntropyLoss()
ood-text-emnlp/roberta_fine_tune.py
Line 140 in c0e1dac
The error message is:
cunn_ClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [2,0,0] Assertion t >= 0 && t < n_classes
failed.
How to solve the problem? Any suggestions? Thanks in advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.