GithubHelp home page GithubHelp logo

498_keyword_extraction's Introduction

498_keyword_extraction

In this project, we have implemented various keywords/keyphrases extaction methods, including supervised methods and unsupervised methods. Since these two category methods will accept different number of parameters, we have two run files:

for run.py: Run as follows: $ python run.py method_name dataset_dir dataset_name For example, run.py nlm graph_closeness method_name: choose from 'NB', 'graph_closeness', 'text_rank', 'svm', 'svm_ranking' dataset_dir: the actual data directory dataset_name: choose from 'nlm', 'js', should match the data directory you mentioned in the previous argument

run2.py is for unsupervised methods To run this program, two command line arguments are needed: The first one is method name used to extract keywords, vaild method names are listed below: tf : term frequency based extraction td : term distribution based extraction tfd : assemble term frequency and term distribution closeness : closeness centrality based graph method textrank : textrank centrality based graph method

The second argument can be a directory or a filename if it's directory (containg docs and corresponding keywords), the program will output the average accuracy and recall for all the files in the directory; if it's filename, the program will output the extracted keywords/keyphrases

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.