Percentage of similarity of massive elements
The echo count ($text)
$sim = similar_text($text[0], $text[1], $perc);
echo "similar_text: $sim ($perc %)\n";Today it can check only 0 and 1 mass value, and they can be unlimited number (but usually not more than 20). You need to write a similarity check algorithm between them: compare 1 with 2, 3...n; 2 with 1, 2...n, etc. And then get the average value of similarity. that is. first to calculate the similarity of the first pair, then the second, the third, etc. and to extract the average arithmetic of their similarity.
The text is added through the textarea form:
Heading 1
Text1
Heading 2
The text2
What is in heading 1 is the value of the mass, heading 2 in 1 is the value of the mass. I think you can do this through a regular expression (extract value between the tags) and put it into a massive.
Client's review of cooperation with Vitaly Bezborodov
Percentage of similarity of massive elementsVitaly quickly understood the task and quickly resolved it.
![]()
Freelancer's review of cooperation with client
Percentage of similarity of massive elementsEverything is fine, all clarifications were quickly agreed, the customer is always in contact. Thank you for cooperation.
-
277 24 0 1 I compare all paragraphs and draw out the average arithmetic similarity.
-
588 18 0 Good day . Ready to perform now.
Write, we will discuss details. Your task has already been fulfilled.
-
737 20 1 Hello, I am ready to take this job right now.
I have a lot of experience in the field.
I will be glad to help you.
Write it all we will discuss.
-
Если $similar_text у вас реализован, можно вызвать его рекурсивно..
-
Добрый вечер. Уже реализовал метод для вычисления схожести всех эл. массива.
-
Current freelance projects in the category PHP
Need to do something similar in the video, it's just a website page with an admin panel.
22 USD
It is necessary to create something similar in the video, it is just a website page with an admin panel. There you can change the amount, the bet, the match coefficient, and so on. What is required from me? HTML of the betting page? Please provide feedback. It needs to be in two… HTML & CSS, PHP ∙ 1 hour 51 minutes back ∙ 5 proposals |
Fix CLSIt is necessary to fix the Cumulative Layout Shift through code PageSpeed does not see this problem, but through Google Chrome, it is visible that there is a layout shift for the desktop version of the page According to Google Search, there is an error regarding the speed of… PHP, Web Programming ∙ 1 day 15 hours back ∙ 27 proposals |
Transfer the fully ready adaptive HTML5 structure to WordPress.
268 USD
I am looking for an experienced WordPress developer who can convert our meticulously prepared static HTML5/CSS3 code into a high-performance custom WordPress theme. The frontend is almost ready (about 99%): semantic markup, metadata, and multilingual structure (hreflang) are… Content Management Systems, PHP ∙ 1 day 18 hours back ∙ 61 proposals |
GoPos IntegrationHello, has anyone done an integration of GoPos with a custom website for a restaurant in Poland? I need help, their documentation is very sparse, there is only swagger and it lacks descriptions. https://app.gopos.io/doc/swagger-ui/index.html The essence is this: we used their… PHP, Web Programming ∙ 2 days 10 hours back ∙ 25 proposals |
Write meta data for ALT using AIA website on Laravel, the site has many images for which it is necessary to automatically generate correct semantic and relevant ALT descriptions for the images, with the possibility of verification. AI & Machine Learning, PHP ∙ 3 days 7 hours back ∙ 34 proposals |