Coder Social home page Coder Social logo

skills_extractor's Introduction

Skills Extractor

This codebase helps to extract skills of people from a CSV files and create tags of those skills. These tags are then used to create a skill taxonomy and assign these tags from this taxonomy to the emoployees mentioned in the CSV file.

Explanation of the files

  1. cluster_skills.py - Consists of the parallelized clusterization algorithm to make the skill taxonomy broader. Low n_clusters means more generalization and vice versa to be more specific.
  2. utils.py - Main file that consists the logic to generate skills_taxonomy.txt and individual_skills.csv.
  3. app.py
  4. individual_skills.csv - A dataframe consists of 2 columns Name and Skills for every employee.
  5. skills_taxonomy.txt - List of Skills that were generated from the initial dataset after clusterization.
  6. postprocessing.py - In case you need a more refined output, i.e., make the skill taxonomy more broader or more specific. It generates individual_skills_refined.csv and skills_taxonomy_refined.txt
  7. individual_skills_refined.csv - It has the same format as individual_skills.csv after running postprocessing.py.
  8. skills_taxonomy_refined.txt - It has the same format as skills_taxonomy.txt after running postprocessing.py.
  9. logs.txt - Consists of the logs of an example run of utils.py

Instructions to run

  1. Create a CSV that has a column called "Skill Sets" that consists of skills defined in natural language for employees.
  2. Create a .env file and define OPENAI_API_KEY environment variable. (Number of API calls will be equal to the number of rows in your CSV.)
  3. python3 -m venv venv
  4. pip install -r requirements.txt
  5. Run python3 utils.py > logs.txt 2>&1
  6. To get a more refined output run python3 postprocessing.py --n_clusters 100

Streamlit application link

The application is deployed in this link: Skill Extractor UI

UI-Screenshot

skills_extractor's People

Contributors

acebot712 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.