Coverage report: /home/ellis/comp/core/lib/nlp/tests.lisp
Kind | Covered | All | % |
expression | 0 | 12 | 0.0 |
branch | 0 | 0 | nil |
Key
Not instrumented
Conditionalized out
Executed
Not executed
Both branches taken
One branch taken
Neither branch taken
2
(:use :cl :std :rt :nlp))
4
(in-package :nlp/tests)
9
(defvar *test-docs* (make-instance 'document-collection))
12
(is (= 3 (length (word-tokenize "foo bar baz"))))
13
(is (= 2 (length (sentence-tokenize "This is the first second. Now the second")))))
16
(is (typep (extract-sections "Testing 1 2 3") 'document-collection)))
18
(deftest porter-stem ()
19
(is (string= (stem "hacking") "hack")))
22
(let ((doc (make-instance 'document :string-contents "test test test")))
23
(is (= 3 (nlp/doc:term-count
25
(is (= 1.0 (nlp/doc:term-frequency
31
"This is a test which will be summarized by the 'SUMMARIZE-TEXT' function. Yada yada. Test 1 2 3.")))
34
(dbscan (extract-sections "This is a test which will be summarized by the 'SUMMARIZE-TEXT' function. Yada yada. Test 1 2 3.")))