fix(naivebayes): fix the algorithm to make it actually work
feat(cleanDocuments): preprocess documents, use stemming and stopword elimination for better accuracy
This commit is contained in:
17
sibe.cabal
17
sibe.cabal
@ -22,6 +22,10 @@ library
|
||||
, deepseq
|
||||
, containers
|
||||
, split
|
||||
, regex-base
|
||||
, regex-pcre
|
||||
, text
|
||||
, stemmer
|
||||
default-language: Haskell2010
|
||||
|
||||
executable sibe-exe
|
||||
@ -53,6 +57,19 @@ executable example-naivebayes-doc-classifier
|
||||
, split
|
||||
default-language: Haskell2010
|
||||
|
||||
executable example-naivebayes-sentiment-analysis
|
||||
hs-source-dirs: examples
|
||||
main-is: naivebayes-sentiment-analysis.hs
|
||||
ghc-options: -threaded -rtsopts -with-rtsopts=-N
|
||||
build-depends: base
|
||||
, sibe
|
||||
, hmatrix
|
||||
, containers
|
||||
, split
|
||||
, directory
|
||||
, deepseq
|
||||
default-language: Haskell2010
|
||||
|
||||
test-suite sibe-test
|
||||
type: exitcode-stdio-1.0
|
||||
hs-source-dirs: test
|
||||
|
Reference in New Issue
Block a user