Fermé

Dynamic regex-building algo: match datasets labeled by flag.

View formatted instructions on drive:

[login to view URL]

------------------------------------------------------------

Abstract

Our goal is to obtain an algorithm that dynamically builds a RegExp based on datasets of strings, able to identify (match) all those strings labeled by boolean.

Our training dataset is an Array of Objects, let’s call it UrlPair, containing the following properties:

URL: str

discard: bool

Each dataset is grouped by Domain (ie. [login to view URL]). The goal is to build a singular RegExp able to identify all the URLs labeled by discard: false, thus excluding from the match any URL with discard: true.

Practical example

Assume the following dataset [View on pastebin]:

[

{

"url": "[login to view URL]",

"discard": false

},

{

"url": "[login to view URL]",

"discard": false

},

{

"url": "[login to view URL]",

"discard": false

},

{

"url": "[login to view URL]",

"discard": true

},

{

"url": "[login to view URL]",

"discard": true

},

{

"url": "[login to view URL]",

"discard": true

}

]

If our algorithm is fed with the above example, it should output the following regex:

\/job\/\d+?\/[\w-\d]*?\/\?LinkSource=PromotedJob

Note the domain is truncated being the route the only relevant part, as the datasets are grouped by domain.

….

Assignment

Build a function, calculateRegex(UrlPairs), where UrlPairs is an array of objects having:

url: str

discard: bool

That returns a single RegExp pattern able to match all the urls flagged with discard:false, and

absolutely exclude all those labeled by discard: true

Compétences : Python, Expressions régulières, Algorithme

en voir plus : extract data regex match, building dynamic navigation system php mysql, flash dynamic flag, flag sprite css image, input form dynamic search match list, perl dynamic regex html parser, building dynamic html pages demo website, php dynamic web site creator building programming, building applications dynamic data, building dynamic forex website, building dynamic social network website, building wordpress template match site, dynamic load building, dynamic website building facebook, dynamic building html5, face match algo, angular dynamic import is only supported when '--module' flag is 'commonjs' or 'esnext', regex replace after match, regex extract second match

Concernant l'employeur :
( 2 commentaires ) Madrid, Spain

Nº du projet : #29063476

12 freelances font une offre moyenne de 479 $ pour ce travail

AwaisChaudhry

Hi, I have read the details I believe I can do this job. While I believe I have some queries which need to be clarified. For that I would request you to start the chat so we could clarify those. We can discuss the time Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 18 jours
(6 Commentaires)
6.0
metlickijv

Good day. I am a top talent python developer with extensive experience. I have complete many similar projects using python libraries. As an expert, I can provide high-quality results within the deadline. You can check Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(11 Commentaires)
5.3
EkoLike

I know you are finding python expert. Just I am here python expert. If you have any desktop app or website of plan using python according to your requirement. Then don’t worry for it. I can implement properly python. Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(3 Commentaires)
4.4
techplusintl

Hi there, ★★★ Python Expert ★★★ 5+ Years of Experience ★★★ I've read requirements and ready to build an algorithm that dynamically builds a RegExp based on datasets of strings. Websites we built with Python: ✔ https:/ Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(6 Commentaires)
4.5
bobrovpavelwork

Hello, How are you today? I checked your post and I am a algorithm expert so that I can complete this project. I can start work right now. Thanks Pavel

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(5 Commentaires)
4.0
umairkaramat24

Hello sir/mam, how are you doing? I have read the project detail and really interested in your project, I am full stack developer with multiple frameworks, I have great experience doing similar jobs regarding to these Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 25 jours
(7 Commentaires)
4.1
Devrits

Hi hiring manager i am Solution & Algorithm Scientist Background: I am an expert in algorithms and software development, with two decades of experience in several domains, including R&D, Software Design & Architectur Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(7 Commentaires)
4.4
harlamovi

✔⭐ Dear Hiring Manager⭐✔ As a python ( Flask & Django) expert, I am very confident in your project. I am very good at Artificial Intelligence, Optimization Code and algorithms. I can complete your job perfectly. Let' Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(3 Commentaires)
3.5
statmadegreat18

Hello, I have read the requirements of your project and I can achieve this with python. I am a python developer with data scientist experience in data scrapping, data processing and data mining. I would like to discuss Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(1 Évaluation)
2.0
devlry

Hello! We just devour your bid that you’re hunting for Dynamic regex-building algo: match datasets labeled by flag.. We are professional in creating Regular Expressions, Python and Algorithm, we are experienced in usi Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 8 jours
(0 Commentaires)
0.0
Dilmurodbek

I am mission-driven developer, and tough mind to solve any issues while developing the project as it's my personal project!

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(0 Commentaires)
0.0
shlerp11

Hi, Client. I have read your project descriptions correctly and I've understanding what you want. Dynamic Regular Generation from url. I have the extensive practical experience in Python and Regular Expression and I Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(0 Commentaires)
0.0