GithubHelp home page GithubHelp logo

Comments (7)

rajaswa avatar rajaswa commented on June 6, 2024 1

This can be extended to add any random character also. Need to discuss more about the functionality of the proposed perturbation

from decepticonlp.

someshsingh22 avatar someshsingh22 commented on June 6, 2024 1

@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.

harsh4799 avatar harsh4799 commented on June 6, 2024

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.

rajaswa avatar rajaswa commented on June 6, 2024

Sounds good. You can start working on a function for now. The corresponding PR will be accepted once #33 is dealt with

from decepticonlp.

harsh4799 avatar harsh4799 commented on June 6, 2024

I'll get right on it

from decepticonlp.

someshsingh22 avatar someshsingh22 commented on June 6, 2024

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

def insert_space(word, ignore=True):

from decepticonlp.

harsh4799 avatar harsh4799 commented on June 6, 2024

Alright, ill make the changes on that function specifically

from decepticonlp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.