1
0
mirror of https://github.com/fumiama/jieba.git synced 2026-06-09 19:20:26 +08:00
Commit Graph

47 Commits

Author SHA1 Message Date
Wang Bin
b19eb4f6fe code refactor, use uint for map key to improve performance 2015-04-06 20:24:07 +08:00
Wang Bin
17ab0b2cc7 small style refactor 2015-04-04 17:42:41 +08:00
Wang Bin
847dae9d38 added bench.sh 2015-04-04 15:35:01 +08:00
Wang Bin
e8cf1e9a9c small refactor 2015-04-04 15:30:11 +08:00
Wang Bin
bbe302a351 removed sorts to slightly improve performance 2015-04-03 16:48:45 +08:00
Wang Bin
84ad6fe25e code refactor, updated RegexpSplit function to match Python's re.split function 2015-04-02 18:25:00 +08:00
Wang Bin
0ab9063f43 added benchmarks for posseg 2015-03-31 13:49:54 +08:00
Wang Bin
7cf16072e6 updated all tests to use Fatal/Fatalf to fail tests ealier 2015-03-30 18:01:21 +08:00
Wang Bin
c397cafe8a uniform the api 2015-03-30 17:52:09 +08:00
Wang Bin
7a7f8af517 move DAG related function to a seperated file, rename Calc to Routes 2015-03-30 17:10:48 +08:00
Wang Bin
68fed7e250 make struct Jieba's fields private 2015-03-30 16:12:02 +08:00
Wang Bin
51c63cb9ad small refactor the interface, use contructors instead of pointers for entry 2015-03-30 13:00:56 +08:00
Wang Bin
a66bf2a0bd move dictPath function private 2015-03-30 11:02:57 +08:00
Wang Bin
59da5b5e3a removed dict.go, functions move to util.go, also use interface to simplify code 2015-03-25 18:28:37 +08:00
Wang Bin
7fe5e7d4c4 small refactor, replace WordTagFreq with Entry 2015-03-25 17:53:25 +08:00
Wang Bin
800ecaa8c9 small refactor 2015-03-25 16:01:05 +08:00
Wang Bin
8687ca58b8 removed unecessary stateTag struct, using string instead 2015-03-25 15:13:46 +08:00
Wang Bin
73d87e4ed6 refactor posseg, added Posseg struct 2015-03-24 16:54:02 +08:00
Wang Bin
0027927b6d code refactor for RegexpSplit function, moved it to util.go, add return chan string 2015-03-24 14:40:06 +08:00
Wang Bin
84bd2e14e2 make some public variable/function to private 2015-02-28 17:43:10 +08:00
Wang Bin
b23dc63eb2 make some public variable/function to private 2015-02-28 17:40:58 +08:00
Wang Bin
2c6a897751 make some public variable/function to private 2015-02-28 17:35:04 +08:00
Wang Bin
db06c66086 make some public variable/function to private 2015-02-28 17:32:40 +08:00
Wang Bin
4b0ddcf666 make some public variable/function to private 2015-02-28 17:27:16 +08:00
Wang Bin
858ceb5a0b small tweaks, add docs 2015-02-28 17:08:04 +08:00
Wang Bin
00fae2358d unify Cut method, return channel instead of array 2015-02-27 17:56:26 +08:00
Wang Bin
d76fbfb017 unify Cut method, return channel instead of array 2015-02-27 17:04:50 +08:00
Wang Bin
f6c298fc65 small refactor for function names 2015-02-26 17:38:26 +08:00
Wang Bin
2bda0be7c5 small refactor, updated REAMDE 2015-02-26 17:27:04 +08:00
Wang Bin
f7fdb9749d rename GetDAG to DAG 2015-02-26 16:56:18 +08:00
Wang Bin
aa9ad48b1c refactor variable name 2015-02-26 16:07:08 +08:00
Wang Bin
c2abc24083 small refactor 2015-02-26 14:59:14 +08:00
Wang Bin
35094877da small refactor 2015-02-26 14:42:16 +08:00
Wang Bin
95a27da5cf small refactor, rename files 2015-02-26 11:12:05 +08:00
Wang Bin
c076a14f76 fixed the tests failure issue 2015-02-26 10:14:35 +08:00
Wang Bin
08ac49d10b small refactor, don't compile regular expression every time, corresponding to jieba commit #32a0e92a09614cf5c72f87b1a59a5c4369200516 2015-02-25 16:32:28 +08:00
Wang Bin
2515d2e5a0 removed unused idx parameter from Calc function, this is correpsonding to jieba commit #8a2e7f0e7ed205429ae545f5b875af4eaa8490d1 2015-02-25 12:18:24 +08:00
Wang Bin
0f7c56b4ef small code refactor 2015-02-04 14:47:59 +08:00
Wang Bin
9b2e9d29df fixed the spell mistakes in posseg_test.go 2015-02-03 11:31:31 +08:00
Wang Bin
2b15490388 make tests more readable 2015-01-26 17:10:54 +08:00
Wang Bin
c8d195143d using bufio.Scanner to reading files, this the recommended way since Go v1.1 2014-08-11 16:44:40 +08:00
Wang Bin
b51ae37771 fixed the bug cause random testing failure, the Less() function was wrong 2014-08-11 16:44:26 +08:00
Wang Bin
b46a8dd73d fixed the test failure problem, any tests that required load user data must put to the bottom of all other tests 2014-08-09 00:51:45 +08:00
Wang Bin
e2d61242c2 fixed jieba issue #137, added test 2014-08-08 18:42:58 +08:00
Wang Bin
385abf0a34 updated dict.txt, corresponding to jieba commit dafc73425e (diff-d41d8cd98f00b204e9800998ecf8427e) 2014-08-08 18:41:19 +08:00
Wang Bin
3d685f1980 fixed the bug from issue #132 from original jieba issue track
- issue details from https://github.com/fxsjy/jieba/issues/132
 - updated tests
 - also some code refactors
2014-08-08 17:59:49 +08:00
Wang Bin
8c785ad36a initial commit 2013-10-31 18:20:04 +08:00