Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating counterfactual examples for English #4

Open
vidhig opened this issue Mar 30, 2021 · 2 comments
Open

Creating counterfactual examples for English #4

vidhig opened this issue Mar 30, 2021 · 2 comments

Comments

@vidhig
Copy link

vidhig commented Mar 30, 2021

I am working on creating counterfactual examples for English but once the sentences are generated, there are some spacing issues, for example: Previously at other Nintendostores, there have been a broader selection of Ethernet switches. where Nintendostores should have been 2 words Nintendo and stores. Could someone help me solve this bug?

@xijiz
Copy link
Owner

xijiz commented Apr 5, 2021

Thank you for your attention to this work!

The code of this work is designed to handle Chinese datasets. There are some places that need to be modified to adapt datasets in other languages, such as token splitting and entity replacement. The most different handling logic is that Chinese text is split at the character level, while English text is split at the word or sub-word level. The rest logic is as same as the common NER pipeline. You only need to modify the above places.

Currently, I am sorry that I have no time to add new features and do tests. Hence, you can try to improve the logic for adapting to new languages according to the difference that I have mentioned above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@xijiz @vidhig and others