Git Product home page Git Product logo

company2vec's Introduction

Company2Vec

CircleCI

This repository generates a company vector embedding given a company name. Many machine learning use cases in business require a numerical representation of company. This repo is designed to aid this process by being easy to understand and generalizable to different companies/industries.

Getting started

To try out the package, follow the steps below:

  • Clone this repository to local machine
  • cd in folder root
  • chmod +x setup.sh to make bash file executable
  • ./setup.sh to run executable - this installs a virtualenv and downloads relevant data
  • Setup a Bing API on Azure and replace the subscription key in config.py (there is a free version)
  • From the command line / terminal, type in:>> python quick_start.py --company_name "<company_name_of_your_choice>" to get the embedding.
  • For short hand notation type in:>> python quick_start.py -c "<company_name_of_your_choice>"

Features

Vector embeddings are often used for natural language processing in machine learning. They are used to represent a concept as a vector - this vector can then be used in a machine learning model. The embedding is created though a combination of an Azure API (to find the company website), scrapy (to do a shallow scrape of the company website) and pre-trained GloVe embeddings.

To return a small number of company embeddings, use quick_start.py. To generate company embeddings at scale, build a web app using kleinapp.py and Dockerfile and deploy this docker image to the cloud.

Documentation

Documentation can be found here.

Contributing

Please do contribute to improve the repository. If you have an issue with the current code/documentation, do open an issue here

Licensing

This project is licensed under MIT License.

company2vec's People

Watchers

James Cloos 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.