Git Product home page Git Product logo

product-categories-classification's People

Contributors

lime-robot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

product-categories-classification's Issues

OverflowError: timeout value is too large 에러문

아나콘다 프럼프트에서 python data.py make_db train명령실행시 ,

OverflowError: timeout value is too large에러가 뜹니다.
무슨 문제인지 모르겠내요..ㅜㅜ(컴퓨터 사양은 인텔 i5-8500CPU, 4.00GB RAM, 64비트 운영체제이고, 하드는 111GB입니다.)
실습과제 데이터가 용량이 너무 커서, cate1.json과 dev.chunk.01, test.chunk.01, train.chunk.01파일만 받아서, 돌려볼려고 했는데,
에러가 나내요..

12

윈도우10 환경에서 학습시 cp949 한글관련 인코딩 에러난다면,,

cate_db.py 28~30 라인에 open함수안에 UTF8 로 읽게 추가하면 되는것 같습니다.

이전>
self.i2wp = [line.split('\t')[0] for line in open(x_vocab_path)]
self.wp2i = dict([(v, i) for i, v in enumerate(self.i2wp)])
self.i2cate = [line.split('\t')[0] for line in open(y_vocab_path)]
self.cate2i = dict([(v, i) for i, v in enumerate(self.i2cate)])

이후>
self.i2wp = [line.split('\t')[0] for line in open(x_vocab_path, encoding='UTF8')]
self.wp2i = dict([(v, i) for i, v in enumerate(self.i2wp)])
self.i2cate = [line.split('\t')[0] for line in open(y_vocab_path, encoding='UTF8')]
self.cate2i = dict([(v, i) for i, v in enumerate(self.i2cate)])

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.