-
Notifications
You must be signed in to change notification settings - Fork 0
/
jieba-hs.cabal
107 lines (103 loc) · 2.78 KB
/
jieba-hs.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
cabal-version: >=1.10
name: jieba-hs
version: 0.1.0.0
synopsis: Jieba Chinese Word Segmentation Library
description:
This is a port of the Jieba Chinese Word Segmentation library which was
originally written in Python. The gist of the segmentation algorithm is
that Chinese word segmentation can be converted into a problem
of finding the optimal path in a directed acyclic graph. Such a path can
then be efficiently found via dynamic programming.
Other features include (some WIP) tokenization, TF-IDF keyword extraction,
usage of an HMM to fill in dictionary gaps, and customizable dictionaries.
-- bug-reports:
license: GPL-3
license-file: LICENSE
author: Ethan Kiang
-- maintainer:
-- copyright:
-- category:
build-type: Simple
extra-source-files: CHANGELOG.md, README.md
library
exposed-modules:
Jieba
Jieba.Parsec.FreqDict
Jieba.Parsec.HmmWeights
other-modules:
Jieba.Dictionary.FreqDict
Jieba.Types.PosTag
Jieba.Types.Units
Jieba.Types.HmmState
Jieba.Graph.PureGraph
Jieba.Graph.STGraph
Jieba.FinalSeg
Jieba.Dictionary.HmmDict
Jieba.Cut
build-depends:
base >=4.12
, containers >=0.6.0.1
, array >=0.5.3.0
, parsec >=3.1.13.0
, mtl >=2.2.2
, dlist >=1.0
, vector >=0.12.2.0
, text >=1.2.4.1
hs-source-dirs: src
default-language: Haskell2010
executable jieba-hs
main-is: Main.hs
other-modules:
Jieba
Jieba.Dictionary.FreqDict
Jieba.Types.PosTag
Jieba.Types.Units
Jieba.Types.HmmState
Jieba.Graph.PureGraph
Jieba.Graph.STGraph
Jieba.Parsec.FreqDict
Jieba.Parsec.HmmWeights
Jieba.FinalSeg
Jieba.Dictionary.HmmDict
Jieba.Cut
-- other-extensions:
build-depends:
base >=4.12
, containers >=0.6.0.1
, array >=0.5.3.0
, parsec >=3.1.13.0
, mtl >= 2.2.2
, dlist >= 1.0
, vector >=0.12.2.0
, text >=1.2.4.1
hs-source-dirs: src
default-language: Haskell2010
executable jieba-hs-tests
main-is: Test/Tests.hs
other-modules:
Jieba
Jieba.Dictionary.FreqDict
Jieba.Types.PosTag
Jieba.Types.Units
Jieba.Types.HmmState
Jieba.Graph.PureGraph
Jieba.Graph.STGraph
Jieba.Parsec.FreqDict
Jieba.Parsec.HmmWeights
Jieba.FinalSeg
Jieba.Dictionary.HmmDict
Jieba.Cut
Test.QuickCheck.Jieba.Instances
build-depends:
base >=4.12
, containers >=0.6.0.1
, array >=0.5.3.0
, parsec >=3.1.13.0
, mtl >= 2.2.2
, dlist >= 1.0
, QuickCheck >= 2.14.2
, deepseq >= 1.4.4.0
, vector >=0.12.2.0
, text >=1.2.4.1
hs-source-dirs: src
default-language: Haskell2010