GEM-benchmark / NL-Augmenter

NL-Augmenter 🦎 → 🐍 A Collaborative Repository of Natural Language Transformations
MIT License
775 stars 195 forks source link

gender_culture_diverse_name returns nothing on some inputs #297

Open sebastianGehrmann opened 3 years ago

sebastianGehrmann commented 3 years ago

@XudongOliverShen

I just tried your transformation on some summarization inputs and it returns nothing there. I believe there may be an issue if a document does not include any entities.

XudongOliverShen commented 3 years ago

That is true. I thought it's better to return nothing, instead of the input sentence. If returning the input sentence, it might confuse that the output has been transformed.

If you think returning the input sentence is more desirable, I can quickly code it up.