Coder Social home page Coder Social logo

sidsriv / applied-text-mining-in-python Goto Github PK

View Code? Open in Web Editor NEW
16.0 3.0 34.0 1.42 MB

This repository contains graded assignments in python-3 language of the course 'Applied text mining in Python', part of the specialisation 'Applied data Science using Python' by University of Michigan offered by Coursera.

Jupyter Notebook 100.00%

applied-text-mining-in-python's Introduction

Applied-text-mining-in-Python

applied-text-mining-in-python's People

Contributors

sidsriv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

applied-text-mining-in-python's Issues

similarity_score function

def similarity_score(s1, s2):
    largest = []
    for item1 in s1:
        max = 0
        for item2 in s2:
            similarity = wn.wup_similarity(item1, item2)
            print(similarity)
            if similarity:
                if similarity > max:
                    max = similarity
        largest.append(max)
        max = 0
    score = sum(largest) / len(largest)
    return score

I tried to write like this, but when I compute like this,

    synset1 = doc_to_synsets('I like cats')
    synset2 = doc_to_synsets('I like dogs')
    res = similarity_score(synset1, synset2)

the res is 0.9285714285714286, isn't right ,do you have any ideas how to solve this question?

Not able to execute

The part 1 of assignment 4 is not getting executed whereas the part 2 is getting executed. Is there any alternative for part1. Please help me.

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.