Git Product home page Git Product logo

Comments (8)

liupan182 avatar liupan182 commented on July 29, 2024

是的,这个分词好慢,不知道是不是作者写的有问题

from jieba-php.

fukuball avatar fukuball commented on July 29, 2024

@sinojyj @liupan182 我沒有遇到這個問題呢,剛剛執行了十個句子,包含“我在本地调试的时候,20字的句子切词需要30秒以上,请问会是哪些因素影响速度?”這個句字,大概 5 秒內完成,不過目前的效能的確不比 python 版本。若有可以改善的地方,也請幫忙改善,開源的目的就是在此~

from jieba-php.

liupan182 avatar liupan182 commented on July 29, 2024

结巴分词挺有名的,感谢作者的付出和努力,但是很多分词程序分词几百字只需要不到一秒,这个程序我第一次使用以及看你们线上的demo,速度有点难以接受,线上的我测试大概七秒,我下载后测试也差不多七八秒,觉得稍微慢了点

from jieba-php.

fukuball avatar fukuball commented on July 29, 2024

@liupan182 也只能持續改進囉~

from jieba-php.

sinojyj avatar sinojyj commented on July 29, 2024

from jieba-php.

fukuball avatar fukuball commented on July 29, 2024

@sinojyj 緩存是一個方向,我在想可以將建構及詞頻的運算結果都緩存,然後客製詞典另外做運算,讓 jieba init 時先讀取緩存結果,大概會快一些吧~ 有空再來試試。

from jieba-php.

sinojyj avatar sinojyj commented on July 29, 2024

from jieba-php.

fukuball avatar fukuball commented on July 29, 2024

@sinojyj 感覺你已經下了很多功夫,如果你有什麼成果請發一下 pull request 吧!

from jieba-php.

Related Issues (20)

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.