Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
grew
grew
Commits
c1ecd2fd
Commit
c1ecd2fd
authored
Feb 19, 2018
by
Bruno Guillaume
Browse files
adapt to lib: domain in graph
parent
d23aeb6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/grew_corpus.ml
View file @
c1ecd2fd
...
...
@@ -56,10 +56,10 @@ let transform () =
(
fun
index
(
id
,
gr
)
->
Counter
.
print
index
len
id
;
match
Rewrite
.
simple_rewrite
~
gr
~
grs
~
strat
:!
Grew_args
.
strat
with
|
[
one
]
->
fprintf
out_ch
"%s
\n
"
(
Graph
.
to_conll_string
?
domain
one
)
|
[
one
]
->
fprintf
out_ch
"%s
\n
"
(
Graph
.
to_conll_string
one
)
|
l
->
List
.
iteri
(
fun
i
gr
->
let
conll
=
Graph
.
to_conll
?
domain
gr
in
let
conll
=
Graph
.
to_conll
gr
in
let
conll_new_id
=
Conll
.
set_sentid
(
sprintf
"%s_%d"
id
i
)
conll
in
fprintf
out_ch
"%s
\n
"
(
Conll
.
to_string
conll_new_id
)
)
l
...
...
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