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
85952bbe
Commit
85952bbe
authored
Apr 28, 2023
by
Jonathan Poalses
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated examples for testing purposes
parent
11c7bb85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
dialect_nlp.clj
src/poalses/jonathan/dialect/dialect_nlp.clj
+9
-4
No files found.
src/poalses/jonathan/dialect/dialect_nlp.clj
View file @
85952bbe
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
"depparse"
"depparse"
"lemma"
"lemma"
"relation"
"relation"
"tokenize"
"coref"
"coref"
"openie"
"openie"
"ner"
]
"ner"
]
...
@@ -39,7 +40,7 @@
...
@@ -39,7 +40,7 @@
(
delay
(
nlp
test-sentence-one
)))
(
delay
(
nlp
test-sentence-one
)))
(
def
sentences-one
(
def
sentences-one
(
d
elay
(
dl/sentences
@
annotated-example-one
)
))
(
d
l/sentences
@
annotated-example-one
))
(
def
annotated-example-two
(
def
annotated-example-two
(
delay
(
nlp
test-sentence-two
)))
(
delay
(
nlp
test-sentence-two
)))
...
@@ -58,19 +59,23 @@
...
@@ -58,19 +59,23 @@
(
map
dl/mentions
@
sentences
)
(
map
dl/mentions
@
sentences
)
(
map
dl/annotation
"relation"
@
sentences
)
(
map
dl/annotation
"relation"
@
sentences
)
(
map
dl/constituency-tree
@
sentences
)
(
map
dl/constituency-tree
@
sentences
)
(
map
dl/constituency-tree
@
sentences-one
)
(
map
dl/constituency-tree
sentences-one
)
(
map
dl/constituency-tree
@
sentences-two
)
(
map
dl/constituency-tree
@
sentences-two
)
(
map
dl/dependency-graph
@
sentences
)
(
map
dl/dependency-graph
@
sentences
)
(
map
dl/dependency-graph
@
sentences-one
)
(
dl/dependency-graph
(
nth
sentences-one
1
)
)
(
map
dl/dependency-graph
@
sentences-two
)
(
map
dl/dependency-graph
@
sentences-two
)
(
map
dl/lemma
@
sentences
)
(
map
dl/lemma
@
sentences
)
(
map
dl/lemma
@
sentences-one
)
(
map
dl/lemma
sentences-one
)
(
map
dl/lemma
@
sentences-two
)
(
map
dl/lemma
@
sentences-two
)
(
dl/tokens
(
nth
sentences-one
1
))
(
map
dl/tokens
@
sentences-two
)
(
->>
(
mapcat
dl/triples
@
sentences
)
(
map
triple->datalog
))
(
->>
(
mapcat
dl/triples
@
sentences
)
(
map
triple->datalog
))
(
dl/annotation
CorefCoreAnnotations$CorefChainAnnotation
@
annotated-example
)
(
dl/annotation
CorefCoreAnnotations$CorefChainAnnotation
@
annotated-example
)
(
show-mentions
)
(
show-mentions
)
sentences-one
;; Datafy the annotations. Retrieves direct annotations for every sentence.
;; Datafy the annotations. Retrieves direct annotations for every sentence.
;; Keep in mind that `dl/recur-datafy` currently doesn't work in this instance
;; Keep in mind that `dl/recur-datafy` currently doesn't work in this instance
;; and will possibly be removed in a future update:
;; and will possibly be removed in a future update:
...
...
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