Coder Social home page Coder Social logo

nlp-issue-labeller's Introduction

nlp-issue-labeller's People

Contributors

0wn463 avatar derek-hardy avatar larrylawl avatar liuzechu avatar

Stargazers

 avatar

Watchers

 avatar

nlp-issue-labeller's Issues

Scraped data analysis

Analysis summary (using jupyter notebook)

Overall
-------
Total number of tensorflow issues:19207
Total number of rust issues:18022
Total number of kubernetes issues:18955

Tensorflow issue analysis
-------------------------
Number of feature issues:2461
Number of bug issues:15098
Number of doc issues:1648

Rust issue analysis
-------------------
Number of feature issues:10163
Number of bug issues:7049
Number of doc issues:766

Kubernetes issue analysis
-------------------------
Number of feature issues:4302
Number of bug issues:11695
Number of doc issues:968

Total issue analysis
-------------------------
Number of feature issues:16926
Number of bug issues:33842
Number of doc issues:3382

German repo issue analysis
--------------------------
Total number of corona widget issues:192
Total number of openWB issues:145

French repo issue analysis
--------------------------
Total number of DVF-app issues:104
Total number of Grafikart issues:313
Total number of azure docs issues:247
Total number of bcdlibre issues:36

Class standardisation policy

We will classify labels of all scraped issues into our standard set of classes.
Namely, {feature, bug, doc}

Tensorflow:

Class Labels
feature type:feature
bug type:bug, type:build/install, type:performance, type:support
doc type:docs-feature, type:docs-bug

Rust:

Class Labels
feature C-feature-request, C-feature-accepted, C-enhancement
bug C-bug
doc T-doc

Kubernetes:

Class Labels
feature kind/feature, kind/api-change
bug kind/bug, kind/failing-test
doc kind/documentation

Tokenisation

Ideas to tokenise both issue title & description text

text regex
title white space
description white space, \r, \n, \t

For description text, we might also want to skip code blocks and reference links. They can be vectorised separately for information extraction.

Update on pipeline and feature issues

Tasks:

  • HTTP links (maybe image link as well) are not yet replaced from β€œtext”, which might affect word embedding.
  • Indicative word count (bug, feature, doc) can be added into feature vector. here
  • Do some selections on the feature vector, remove irrelevant ones that adversely impact accuracy.
  • dataframe_generator might want to incorporate xxx_links_extracted.json
  • Update code_count, link_count and image_count method in handcrafted_feature_extractor.py (links and code blocks can get directly from JSON data, consider remove image feature)

Model-wise, maybe SGDClassifier can be tried as well.

Feature Engineering

Language-dependent:

  • count number of indicative word occurrences
    • feature: feature, features
    • doc: doc, docs, documentation, documentations
    • bug: bug, bugs, fix, fixes
  • text-based features:
    • title length
    • description length
    • distinct word count
    • uppercase word count
    • stopword count
  • Use word embedding to detect word similarity

Language-independent: (markdown)

  • common markdown element count of occurrence
  • element length (e.g. bold word count, code block word count, list item count)
    • implementation: rely on parser output from above
  • further information extraction on meaningful entities (e.g. reference URL, code block content)
    • implementation: TODO

Language-independent: (GitHub)

  • @github_username count of occurrence
    • implementation: custom tokeniser
  • issue \ pr reference e.g. #12 count of occurrence
    • implementation: custom tokeniser

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.