Comments (6)
I believe I could add a feature to map digits to their adjacents, and special characters to their adjacents. But I suppose replacing alphabets with special characters won't make a lot of sense, as logically the perturbation won't even make sense to us. What do you think?
@abheesht17 , @someshsingh22 , @rajaswa
from decepticonlp.
We are already considering special look alike chars, I think we are getting confused between typos and visually similar chars. Keep them separate
from decepticonlp.
@parantak, I don't think there is a problem with replacing alphabetic characters with special characters. Here, we are talking about typos (as @someshsingh22 mentioned). Typos are decided by their proximity to the correct character on the keyboard; basically, characters which replace the correct one due to an accidental key press.
The one problem that can arise with special characters is that users tend to remove them during pre-processing, which is why I said that I leave it to your discretion.
What we can do is this:
- Map digits to keys on the keyboard which are close by (as you said).
- Update the dictionary of the alphabetic characters with updated key-value pairs (as given in the blog). The lists in the values can include digits as well (and possibly special characters).
from decepticonlp.
Yeah, I agree. That's what I meant. Even, without preprocessing, even if were to simulate typos per se, any user would explicitly take note of the typo, if it was a special character in place of an alphabet.
from decepticonlp.
I'll make the updates soon.
from decepticonlp.
@parantak If ur making any updates now you just have to edit the json
from decepticonlp.
Related Issues (20)
- Sub-W | GloVe implementation HOT 1
- Implementation of Repeating Characters HOT 7
- int2text or text2int HOT 8
- Typo Try Catch Exceptions
- OOP implementation of metrics.py HOT 6
- Similarity metrics (New) HOT 6
- Numpy is used in perturbations.py but not specified in requirements.txt HOT 1
- Text Preprocessing HOT 2
- Add .coveragerc
- Add #pragma: no cover to abstract methods which should never be tested. HOT 2
- Implementing support for embeddings HOT 2
- Where should the temporal difference functions be integrated? HOT 1
- Implementing WMD HOT 2
- Adding a transforms class [check details] HOT 5
- Implementing Attacker class HOT 16
- Restructuring the tests directory HOT 1
- Implementing Keyword Extraction
- Integration Tests for attack.py HOT 2
- Plan for the pipeline [UPDATED] HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from decepticonlp.