Commit 578ed012 authored by Jonathan Poalses's avatar Jonathan Poalses

Added standard sentence sample

parent b64b6ea2
...@@ -28,6 +28,9 @@ ...@@ -28,6 +28,9 @@
(def test-sentence-six (def test-sentence-six
"This is all about like. I like lychees, they're delicious. Sometimes life is like watching paint dry, basically very boring") "This is all about like. I like lychees, they're delicious. Sometimes life is like watching paint dry, basically very boring")
(def test-sentence-seven
"This is a standard sample. It should not be defined as any dialect, therefore being recognised as standard.")
(def nlp (def nlp
(dl/->pipeline {:annotators ["truecase" (dl/->pipeline {:annotators ["truecase"
"quote" "quote"
...@@ -163,6 +166,7 @@ ...@@ -163,6 +166,7 @@
(first (last (sort-by val (frequencies (flatten (map detect-sentence-dialect (dl/sentences (nlp test-sentence-four)))))))) (first (last (sort-by val (frequencies (flatten (map detect-sentence-dialect (dl/sentences (nlp test-sentence-four))))))))
(first (last (sort-by val (frequencies (flatten (map detect-sentence-dialect (dl/sentences (nlp test-sentence-five)))))))) (first (last (sort-by val (frequencies (flatten (map detect-sentence-dialect (dl/sentences (nlp test-sentence-five))))))))
(first (last (sort-by val (frequencies (flatten (map detect-sentence-dialect (dl/sentences (nlp test-sentence-six)))))))) (first (last (sort-by val (frequencies (flatten (map detect-sentence-dialect (dl/sentences (nlp test-sentence-six))))))))
(first (last (sort-by val (frequencies (flatten (map detect-sentence-dialect (dl/sentences (nlp test-sentence-seven))))))))
(last (vals rats)) (last (vals rats))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment