Git Product home page Git Product logo

readmeclassifier's Issues

About ZeroDivisionError

Hello, when I try to train a model with my own data, it occurs this error

Traceback (most recent call last):
  File "classifier_train_model.py", line 83, in <module>
    classifier.fit(features_combined.values, labels_matrix)
  File "../READMEClassifier/script/helper/balancer.py", line 78, in fit
    numDup = totalIns/imbalancedIns - 1
ZeroDivisionError: division by zero

So, what may be the problem? Thanks

Some attribute issues

Hi, gprana, thanks for your great work. I am using Python 3.6. I am facing following issue when I ran load_dev_and_eval_datasets.py

Processing ../input/dev_and_eval_readmes/antlinker.go-mqtt.md
Processing ../input/dev_and_eval_readmes/alanwgeorge.Android-CleanArchitecture.md
Abstraction of README file into temporary directory has been completed
Fetching information of section to extract and load
Searching for abstracted heading: #  @abstr_hyperlink
Reading ../temp/abstracted_markdown/xiaobai557.wechat.md
Found the heading for # [Easy WeChat](http://easywechat.org)
Encountered heading in document: ## 特点
'DataFrame' object has no attribute 'set_value'
Traceback (most recent call last):
  File "/home2/xxx/nlp/gprana-readme_classifier/script/helper/extractor.py", line 100, in extract_section_from_abstracted_files
    headings.set_value(i,'content_text_w_o_tags',curr_section_content_w_o_tags)
  File "/home/xxx/.conda/envs/py36ccrm/lib/python3.6/site-packages/pandas/core/generic.py", line 5274, in __getattr__
    return object.__getattribute__(self, name)
AttributeError: 'DataFrame' object has no attribute 'set_value'
Loading of section contents has been completed
Finished loading data for 25 pct set
Emptying tables for 75 pct data
Cleanup completed
Processing files from ../input/dataset_2.csv
Traceback (most recent call last):
  File "load_dev_and_eval_datasets.py", line 33, in <module>
    extractor.load_section_overview_from_csv(input_filename_csv, db_filename, f'section_overview_{n}pct')
  File "/home2/xxx/nlp/gprana-readme_classifier/script/helper/extractor.py", line 327, in load_section_overview_from_csv
    if sys.stdout.encoding != 'utf-8':
  File "/home/xxx/.conda/envs/py36ccrm/lib/python3.6/codecs.py", line 408, in __getattr__
    return getattr(self.stream, name)
AttributeError: '_io.BufferedWriter' object has no attribute 'encoding'

Could you give me some suggestions? Thanks.

Request for READMEs data

Hello,

I've read your paper, and I'm looking into reproducing some of the analysis you've made, and also adding some others I come up with for a school project.

I was wondering if it would be possible to share the READMEs you've acquired from GitHub with me (before they were broken into sections), so I don't have to go through the data collection process.

Thank you.

Question about sections classified as "-" and ""

Hello sir,

Using your classifier, I got some sections classified with section code "-" and some with no code at all.

Could you please explain what those mean, I didn't really understand them from reading your paper.

Thank you very much.

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.