Find Jobs
Hire Freelancers

Text similarity calculator (PHP script)

$30-100 USD

Cancelled
Posted almost 17 years ago

$30-100 USD

Paid on delivery
I need a PHP script that calculates the "edit distance" between the contents of two text files, where "edit distance" is defined as the minimal number of word insertions, word deletions, word substitutions and words transpositions (these weighted x0.5) needed to transform the first one into the second one. Examples of program input (text 1, text 2, i.e. the content of the two text files) and output (edit distance): text 1: "THIS APPLE IS RED" text 2: "THIS IS RED" edit distance = 1 (1 word deletion) text 1: "THIS IS RED" text 2: "THIS APPLE IS RED" edit distance = 1 (1 word insertion) text 1: "THIS APPLE IS RED" text 2: "THIS CHERRY IS RED" edit distance = 1 (1 word substitution) text 1: "THIS APPLE IS RED" text 2: "THIS RED IS APPLE" edit distance = 0.5 (1 word transposition) text 1: "THIS APPLE IS RED" text 2: "APPLE RED" edit distance = 2 (2 word deletions) text 1: "THIS APPLE IS RED" text 2: "THIS RED APPLE IS GOOD" edit distance = 2 (1 word insertion + 1 word substitution) Requisites: - it must be fast (<1 minute to calculate the edit distance between two completely different 100KB text files) - it must work with any text file of any lenght (<200KB) Escrow offered. Demo appreciated. _____ Note: this "edit distance" that I want is similar to the Damerau-Levenshtein distance whose algorithm (in C) is reported here: [login to view URL], with main the difference that this counts the number of diff. characters while I want to count the number of diff. words.
Project ID: 146455

About the project

15 proposals
Remote project
Active 17 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
15 freelancers are bidding on average $68 USD for this job
User Avatar
Hi please check pmb for details
$100 USD in 4 days
4.9 (163 reviews)
7.8
7.8
User Avatar
Please, check PM
$80 USD in 2 days
4.9 (164 reviews)
7.7
7.7
User Avatar
Hi, please, check your PM
$100 USD in 0 day
5.0 (327 reviews)
7.4
7.4
User Avatar
Ready & Available.
$30 USD in 0 day
5.0 (125 reviews)
7.1
7.1
User Avatar
Hi. Very interesting project for me, would be glad to do it. I have a lot of experience in PHP, more than 8 years. Will provide clear written fast script. Thank you.
$95 USD in 4 days
5.0 (6 reviews)
6.4
6.4
User Avatar
Hello. Please see the PMB for details.
$100 USD in 0 day
5.0 (27 reviews)
5.3
5.3
User Avatar
Hello, lets start
$75 USD in 5 days
5.0 (14 reviews)
4.6
4.6
User Avatar
Hello; Very interessant, i can help you, please see pm
$80 USD in 0 day
5.0 (14 reviews)
4.3
4.3
User Avatar
Pls. check PM.
$90 USD in 2 days
5.0 (4 reviews)
3.6
3.6
User Avatar
Hi, check PM, thanks
$95 USD in 1 day
5.0 (7 reviews)
3.0
3.0
User Avatar
Very Intersting Project, Please check PMB...
$50 USD in 45 days
4.2 (5 reviews)
3.0
3.0
User Avatar
See your pmb, please.
$30 USD in 0 day
5.0 (1 review)
1.0
1.0
User Avatar
Please, see PM
$30 USD in 0 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Demo availabe. See PM please..
$30 USD in 0 day
0.0 (0 reviews)
0.0
0.0
User Avatar
contact please
$90 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of ITALY
Milano, Italy
5.0
69
Payment method verified
Member since Sep 14, 2006

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.