Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libcaml-grew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
grew
libcaml-grew
Commits
3784ca74
Commit
3784ca74
authored
Jan 09, 2018
by
Bruno Guillaume
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change type of ?filter arg of function Graph.to_dep
parent
fc128a26
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
src/grew_fs.ml
src/grew_fs.ml
+2
-2
src/grew_fs.mli
src/grew_fs.mli
+2
-2
src/grew_graph.mli
src/grew_graph.mli
+1
-1
src/grew_rule.mli
src/grew_rule.mli
+1
-1
src/libgrew.mli
src/libgrew.mli
+1
-1
No files found.
src/grew_fs.ml
View file @
3784ca74
...
@@ -339,7 +339,7 @@ module G_fs = struct
...
@@ -339,7 +339,7 @@ module G_fs = struct
then
(
sprintf
"%s:B:yellow"
esc_atom
)
::
acc
then
(
sprintf
"%s:B:yellow"
esc_atom
)
::
acc
else
else
match
filter
with
match
filter
with
|
Some
filt_list
when
not
(
List
.
mem
feat_name
filt_list
)
->
acc
|
Some
test
when
not
(
test
feat_name
)
->
acc
|
_
->
esc_atom
::
acc
|
_
->
esc_atom
::
acc
)
last
sub
in
)
last
sub
in
let
subword
=
String
.
concat
"#"
(
List
.
rev
lines
)
in
let
subword
=
String
.
concat
"#"
(
List
.
rev
lines
)
in
...
@@ -409,7 +409,7 @@ module P_fs = struct
...
@@ -409,7 +409,7 @@ module P_fs = struct
let
to_dep
?
filter
param_names
t
=
let
to_dep
?
filter
param_names
t
=
let
reduced
=
match
filter
with
let
reduced
=
match
filter
with
|
None
->
t
|
None
->
t
|
Some
l
->
List
.
filter
(
fun
(
fn
,_
)
->
List
.
mem
fn
l
)
t
in
|
Some
test
->
List
.
filter
(
fun
(
fn
,_
)
->
test
fn
)
t
in
List_
.
to_string
(
P_feature
.
to_string
~
param_names
)
"#"
reduced
List_
.
to_string
(
P_feature
.
to_string
~
param_names
)
"#"
reduced
let
to_dot
t
=
List_
.
to_string
P_feature
.
to_string
"
\\
n"
t
let
to_dot
t
=
List_
.
to_string
P_feature
.
to_string
"
\\
n"
t
...
...
src/grew_fs.mli
View file @
3784ca74
...
@@ -48,7 +48,7 @@ module G_fs: sig
...
@@ -48,7 +48,7 @@ module G_fs: sig
val
to_gr
:
t
->
string
val
to_gr
:
t
->
string
val
to_dot
:
?
decorated_feat
:
(
string
*
string
list
)
->
?
main_feat
:
string
->
t
->
string
val
to_dot
:
?
decorated_feat
:
(
string
*
string
list
)
->
?
main_feat
:
string
->
t
->
string
val
to_word
:
?
main_feat
:
string
->
t
->
string
val
to_word
:
?
main_feat
:
string
->
t
->
string
val
to_dep
:
?
decorated_feat
:
(
string
*
string
list
)
->
?
position
:
float
->
?
main_feat
:
string
->
?
filter
:
string
list
->
t
->
string
val
to_dep
:
?
decorated_feat
:
(
string
*
string
list
)
->
?
position
:
float
->
?
main_feat
:
string
->
?
filter
:
(
string
->
bool
)
->
t
->
string
val
to_conll_string
:
?
exclude
:
string
list
->
t
->
string
val
to_conll_string
:
?
exclude
:
string
list
->
t
->
string
val
to_conll
:
?
exclude
:
string
list
->
t
->
(
string
*
string
)
list
val
to_conll
:
?
exclude
:
string
list
->
t
->
(
string
*
string
)
list
...
@@ -79,7 +79,7 @@ module P_fs: sig
...
@@ -79,7 +79,7 @@ module P_fs: sig
val
to_string
:
t
->
string
val
to_string
:
t
->
string
val
to_dep
:
?
filter
:
string
list
->
(
string
list
*
string
list
)
->
t
->
string
val
to_dep
:
?
filter
:
(
string
->
bool
)
->
(
string
list
*
string
list
)
->
t
->
string
val
to_dot
:
t
->
string
val
to_dot
:
t
->
string
...
...
src/grew_graph.mli
View file @
3784ca74
...
@@ -198,7 +198,7 @@ module G_graph: sig
...
@@ -198,7 +198,7 @@ module G_graph: sig
val
to_gr
:
?
domain
:
Domain
.
t
->
t
->
string
val
to_gr
:
?
domain
:
Domain
.
t
->
t
->
string
val
to_dot
:
?
domain
:
Domain
.
t
->
?
main_feat
:
string
->
?
deco
:
G_deco
.
t
->
t
->
string
val
to_dot
:
?
domain
:
Domain
.
t
->
?
main_feat
:
string
->
?
deco
:
G_deco
.
t
->
t
->
string
val
to_sentence
:
?
main_feat
:
string
->
t
->
string
val
to_sentence
:
?
main_feat
:
string
->
t
->
string
val
to_dep
:
?
domain
:
Domain
.
t
->
?
filter
:
string
list
->
?
main_feat
:
string
->
?
deco
:
G_deco
.
t
->
t
->
string
val
to_dep
:
?
domain
:
Domain
.
t
->
?
filter
:
(
string
->
bool
)
->
?
main_feat
:
string
->
?
deco
:
G_deco
.
t
->
t
->
string
val
to_conll
:
?
domain
:
Domain
.
t
->
t
->
Conll
.
t
val
to_conll
:
?
domain
:
Domain
.
t
->
t
->
Conll
.
t
val
to_conll_string
:
?
domain
:
Domain
.
t
->
t
->
string
val
to_conll_string
:
?
domain
:
Domain
.
t
->
t
->
string
end
(* module G_graph *)
end
(* module G_graph *)
...
...
src/grew_rule.mli
View file @
3784ca74
...
@@ -46,7 +46,7 @@ module Instance : sig
...
@@ -46,7 +46,7 @@ module Instance : sig
val
to_conll_string
:
?
domain
:
Domain
.
t
->
t
->
string
val
to_conll_string
:
?
domain
:
Domain
.
t
->
t
->
string
(** [save_dot_png base t] writes a file "base.png" with the dot representation of [t] *)
(** [save_dot_png base t] writes a file "base.png" with the dot representation of [t] *)
val
save_dot_png
:
?
domain
:
Domain
.
t
->
?
filter
:
string
list
->
?
main_feat
:
string
->
string
->
t
->
unit
val
save_dot_png
:
?
domain
:
Domain
.
t
->
?
filter
:
(
string
->
bool
)
->
?
main_feat
:
string
->
string
->
t
->
unit
end
(* module Instance *)
end
(* module Instance *)
(* ================================================================================ *)
(* ================================================================================ *)
...
...
src/libgrew.mli
View file @
3784ca74
...
@@ -91,7 +91,7 @@ module Graph : sig
...
@@ -91,7 +91,7 @@ module Graph : sig
val
to_dot
:
?
domain
:
Domain
.
t
->
?
main_feat
:
string
->
?
deco
:
Deco
.
t
->
t
->
string
val
to_dot
:
?
domain
:
Domain
.
t
->
?
main_feat
:
string
->
?
deco
:
Deco
.
t
->
t
->
string
val
to_dep
:
?
domain
:
Domain
.
t
->
?
filter
:
string
list
->
?
main_feat
:
string
->
?
deco
:
Deco
.
t
->
t
->
string
val
to_dep
:
?
domain
:
Domain
.
t
->
?
filter
:
(
string
->
bool
)
->
?
main_feat
:
string
->
?
deco
:
Deco
.
t
->
t
->
string
val
to_gr
:
?
domain
:
Domain
.
t
->
t
->
string
val
to_gr
:
?
domain
:
Domain
.
t
->
t
->
string
...
...
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