Comments (7)
This can be extended to add any random character also. Need to discuss more about the functionality of the proposed perturbation
from decepticonlp.
@blackrosedragon2, The code structure has been changed a lot, so before you implement just make sure you are doing it to in accordance with the latest format, because this is what we will probably use ahead. refer to this -> de1571a
from decepticonlp.
You're right, lets make it for random characters. I was thinking [A-Za-z]* should get appended to the input string, to select the positions that should get appended i can create a list of a random size consisting of random indices where the random character would get appended.
from decepticonlp.
Sounds good. You can start working on a function for now. The corresponding PR will be accepted once #33 is dealt with
from decepticonlp.
I'll get right on it
from decepticonlp.
A reminder, this is very similar to insert_space in perturb, so we there is no sense in adding another function, just add an argument instead
default is ' '
there should be an option "alphabet" which means [a-zA-Z]
check here
from decepticonlp.
Alright, ill make the changes on that function specifically
from decepticonlp.
Related Issues (20)
- Sub-W | GloVe implementation HOT 1
- Adding more characters to the dictionary in the typo function HOT 6
- 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.