When reading rust codes, you sometimes see File::open or f.read(). Why are some functions accessed with ::, and others with .? By taking a look at the...
閱讀 rust 程式的時候偶爾會看到 File::open() 或是 f.read()。但為什麼有些功能是用 :: 呼叫,有些是用 . ? 翻開 std::fs::File 的原始碼,可以看到這些功能都是定義在 impl File 或是 impl SomeTrait for File 內: //...
How jieba works, part 3 本篇將用 Part 2 介紹的隱藏式馬可夫模型與 Viterbi 演算法將剩下的字 (大、學、與、老、師、討、論、力、學)...
How jieba works, part 2 這篇將解釋何謂馬可夫模型 Markov model、隱藏式馬可夫模型 Hidden Markov model (HMM)、與 Viterbi 演算法。 馬可夫模型 Markov...
How jieba works, part 1 有做過中文自然語言處理 (natural language processing, NLP)...
When building REST APIs in Python, nothing beats FastAPI. It lets you define routes, and their inputs and outputs quickly and easily. Best of all, it...