Giter Club home page Giter Club logo

natural-language-processing's Introduction

Natural Language Processing Project

Description

  • Project that analyzes the contents readmes in order to predict the primary coding language of the repo
  • Data was acquired by webscraping repos after searching the word "repository"

Goals

  • Find features associated with primary coding language
  • Create a model that predicts primary coding language

Data Dictionary

column name type description
repo str The name of the repo the data was pulled from
language str The primary coding language used in the repo
readme_contents_clean str The cleaned version of the repository's text
readme_length int How long the readme is by characters
languages_in_readme str Coding languages found to be in the contents of the readme
has_X Bool Says if the specified coding language was found in the readme

Project Plan

  • Acquire data by scraping some repos
  • Prepare data by handling nulls, cleaning readme contents, and create new features such as "readme length" and "languages in readme"
  • Explore data, see what words are popularly used in each coding language
  • Prepare for modeling removing unnecessary columns and split the data
  • Model on train and validate
  • Take best performing model and use it on test
  • Document results

Project Takeaways

  • It was found that Python, Java, and C++ were the most common coding languages
  • Only about a third of the repositories had specific coding languages mentioned in their readmes
  • The common words found in each coding language group varied from group to group
  • The best performing model (KNN) beat my baseline by 19%

Instructions for Recreation

  • All necessary functions are in the acquire and prepare files including get_repo_data, prep_repos, add_language_dummies_and_length_feature, and split.
  • Explore and model code is in the notebook

natural-language-processing's People

Contributors

sam-keeler 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.