Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

feat: compare function added #625

Merged
merged 2 commits into from
Aug 11, 2020
Merged

Conversation

ritwickraj78
Copy link
Contributor

Description

Added compare function to generate similarity score between meetup descriptions

Fixes #560

Type of Change:

Delete irrelevant options.

  • Code

Code/Quality Assurance Only

  • New feature (non-breaking change which adds functionality pre-approved by mentors)

How Has This Been Tested?

Tried testing with meetup descriptions from meetup.com. Works well

Checklist:

Delete irrelevant options.

  • My PR follows the style guidelines of this project
  • I have performed a self-review of my own code or materials
  • I have commented my code or provided relevant documentation, particularly in hard-to-understand areas

Code/Quality Assurance Only

  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes

@ritwickraj78
Copy link
Contributor Author

@sakshi1499 The not coming is removed in this PR. We can merge that one now

@sakshi1499
Copy link

Ok ok got it

Copy link

@sakshi1499 sakshi1499 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some checks are failing can you correct them? @ritwickraj78

SanketDG
SanketDG previously approved these changes Aug 3, 2020
Copy link
Contributor

@SanketDG SanketDG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks okay but you will have to break this function down into composable units of building blocks, instead of one large function.

@ritwickraj78
Copy link
Contributor Author

@sakshi1499 @SanketDG Really sorry. Will make the changes asap

percentage_of_similarity = round(float(total_avg) * 100)
if percentage_of_similarity >= 100:
percentage_of_similarity = 100
return percentage_of_similarity
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ritwickraj78 Can you modularize this a bit? And maybe add some comments

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure.

sammy1997
sammy1997 previously approved these changes Aug 10, 2020
Copy link
Contributor

@sammy1997 sammy1997 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sakshi1499 @SanketDG Ritwick has made it a bit modular. The rest of it looks good to me. Let's wrap up the reviews and merge these. We are quite behind on these

@sammy1997
Copy link
Contributor

@ritwickraj78 please resolve the merge conflicts

@SanketDG SanketDG merged commit 102a9fd into anitab-org:develop Aug 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Train the meetup corpus with Django views (Backend)
4 participants