Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
Major Project Handcrafted
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
jonathan.poalses
Major Project Handcrafted
Commits
578ed012
Commit
578ed012
authored
May 03, 2023
by
Jonathan Poalses
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added standard sentence sample
parent
b64b6ea2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
dialect_nlp.clj
src/poalses/jonathan/dialect/dialect_nlp.clj
+4
-0
No files found.
src/poalses/jonathan/dialect/dialect_nlp.clj
View file @
578ed012
...
...
@@ -28,6 +28,9 @@
(
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"
)
(
def
test-sentence-seven
"This is a standard sample. It should not be defined as any dialect, therefore being recognised as standard."
)
(
def
nlp
(
dl/->pipeline
{
:annotators
[
"truecase"
"quote"
...
...
@@ -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-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-seven
))))))))
(
last
(
vals
rats
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment