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:
Mahdi Dibaiee
2016-08-05 23:54:36 +04:30
parent 3cf0625794
commit ea1f05f001
10 changed files with 254 additions and 54 deletions

View File

@ -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