Git Product home page Git Product logo

scel2txt's Issues

部分词库转换失败

“网络流行新词【官方推荐】.scel”没有转换(一共放了七个scel文件),输出如下:


数学词汇大全【官方推荐】.scel:15992 个词

**高等院校(大学)大全【官方推荐】.scel:7192 个词

物理词汇大全【官方推荐】.scel:13107 个词

计算机词汇大全【官方推荐】.scel:10300 个词

开发大神专用词库【官方推荐】.scel:430 个词

linux少量术语.scel:136 个词

Traceback (most recent call last):
File "scel2txt.py", line 175, in
scel2txt.deal(os.path.join("./scel", scel_file))
File "scel2txt.py", line 147, in deal
self.getChinese(data[self.startChinese:])
File "scel2txt.py", line 116, in getChinese
py = self.getWordPy(data[pos: pos+py_table_len])
File "scel2txt.py", line 87, in getWordPy
ret.append(self.GPy_Table[index])
KeyError: 34945

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.