Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libcaml-grew
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
7
Issues
7
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Packages
Packages
Container Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
grew
libcaml-grew
Commits
3aac526e
Commit
3aac526e
authored
Feb 10, 2019
by
Bruno Guillaume
Browse files
Options
Browse Files
Download
Plain Diff
fix commit conflicts
parents
4f467ce0
a992ef16
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
26 additions
and
26 deletions
+26
-26
CHANGES.md
CHANGES.md
+4
-0
Makefile
Makefile
+1
-1
VERSION
VERSION
+1
-1
src/grew_ast.mli
src/grew_ast.mli
+1
-1
src/grew_command.mli
src/grew_command.mli
+1
-1
src/grew_domain.mli
src/grew_domain.mli
+1
-1
src/grew_edge.mli
src/grew_edge.mli
+3
-3
src/grew_fs.mli
src/grew_fs.mli
+2
-3
src/grew_graph.ml
src/grew_graph.ml
+1
-1
src/grew_graph.mli
src/grew_graph.mli
+3
-4
src/grew_grs.mli
src/grew_grs.mli
+1
-1
src/grew_node.mli
src/grew_node.mli
+1
-1
src/grew_rule.mli
src/grew_rule.mli
+2
-3
src/libgrew.mli
src/libgrew.mli
+4
-5
No files found.
CHANGES.md
View file @
3aac526e
# 1.1.2 (2019/02/10)
*
change json type
*
add cmxs target
# 1.1.1 (2018/11/23)
*
style for projection edges
...
...
Makefile
View file @
3aac526e
OCB_FLAGS
=
-use-ocamlfind
-use-menhir
-I
src
OCB
=
ocamlbuild
$(OCB_FLAGS)
LIB_FILES
=
libgrew.cma libgrew.cmxa libgrew.a libgrew.cmi libgrew_types.cmi libgrew.cmx
LIB_FILES
=
libgrew.cma libgrew.cmxa libgrew.a libgrew.cmi libgrew_types.cmi libgrew.cmx
libgrew.cmxs
INSTALL_FILES
=
$
(
LIB_FILES:%
=
_build/src/%
)
VERSION
=
`
cat
VERSION
`
...
...
VERSION
View file @
3aac526e
1.1.
1
1.1.
2
src/grew_ast.mli
View file @
3aac526e
...
...
@@ -236,7 +236,7 @@ module Ast : sig
type
grs
=
decl
list
val
strat_to_json
:
strat
->
Yojson
.
Basic
.
json
val
strat_to_json
:
strat
->
Yojson
.
Basic
.
t
val
strat_list
:
grs
->
string
list
...
...
src/grew_command.mli
View file @
3aac526e
...
...
@@ -44,7 +44,7 @@ module Command : sig
|
SHIFT_OUT
of
(
command_node
*
command_node
*
Label_cst
.
t
)
type
t
=
(
p
*
Loc
.
t
)
val
to_json
:
?
domain
:
Domain
.
t
->
t
->
Yojson
.
Basic
.
json
val
to_json
:
?
domain
:
Domain
.
t
->
t
->
Yojson
.
Basic
.
t
val
build
:
...
...
src/grew_domain.mli
View file @
3aac526e
...
...
@@ -40,7 +40,7 @@ module Domain : sig
val
dump
:
t
option
->
unit
val
to_json
:
t
->
Yojson
.
Basic
.
json
val
to_json
:
t
->
Yojson
.
Basic
.
t
val
build
:
Label_domain
.
t
->
Feature_domain
.
t
->
t
val
build_features_only
:
Feature_domain
.
t
->
t
...
...
src/grew_edge.mli
View file @
3aac526e
...
...
@@ -32,7 +32,7 @@ module G_edge: sig
val
from_string
:
?
loc
:
Loc
.
t
->
?
domain
:
Domain
.
t
->
string
->
t
val
to_json
:
?
domain
:
Domain
.
t
->
t
->
Yojson
.
Basic
.
json
val
to_json
:
?
domain
:
Domain
.
t
->
t
->
Yojson
.
Basic
.
t
val
sub
:
t
...
...
@@ -46,7 +46,7 @@ module Label_cst : sig
type
t
val
to_string
:
?
domain
:
Domain
.
t
->
t
->
string
val
to_json
:
?
domain
:
Domain
.
t
->
t
->
Yojson
.
Basic
.
json
val
to_json
:
?
domain
:
Domain
.
t
->
t
->
Yojson
.
Basic
.
t
val
all
:
t
val
match_
:
?
domain
:
Domain
.
t
->
t
->
G_edge
.
t
->
bool
val
build
:
?
loc
:
Loc
.
t
->
?
domain
:
Domain
.
t
->
Ast
.
edge_label_cst
->
t
...
...
@@ -61,7 +61,7 @@ module P_edge: sig
(* [all] is the joker pattern edge *)
val
all
:
t
val
to_json
:
?
domain
:
Domain
.
t
->
t
->
Yojson
.
Basic
.
json
val
to_json
:
?
domain
:
Domain
.
t
->
t
->
Yojson
.
Basic
.
t
val
get_id
:
t
->
string
...
...
src/grew_fs.mli
View file @
3aac526e
...
...
@@ -8,7 +8,6 @@
(* Authors: see AUTHORS file *)
(**********************************************************************************)
open
Yojson
.
Basic
open
Conll
open
Grew_base
...
...
@@ -51,7 +50,7 @@ module G_fs: sig
val
to_word
:
t
->
string
option
val
to_dep
:
?
decorated_feat
:
(
string
*
(
string
*
string
option
)
list
)
->
?
position
:
float
->
?
main_feat
:
string
->
?
filter
:
(
string
->
bool
)
->
t
->
string
val
to_conll
:
?
exclude
:
string
list
->
t
->
(
string
*
string
)
list
val
to_json
:
t
->
json
val
to_json
:
t
->
Yojson
.
Basic
.
t
val
to_string
:
t
->
string
val
build
:
?
domain
:
Domain
.
t
->
Ast
.
feature
list
->
t
...
...
@@ -71,7 +70,7 @@ end (* module G_fs *)
module
P_fs
:
sig
type
t
val
to_json
:
?
domain
:
Domain
.
t
->
t
->
Yojson
.
Basic
.
json
val
to_json
:
?
domain
:
Domain
.
t
->
t
->
Yojson
.
Basic
.
t
val
empty
:
t
...
...
src/grew_graph.ml
View file @
3aac526e
...
...
@@ -371,7 +371,7 @@ module G_graph = struct
(* -------------------------------------------------------------------------------- *)
let
of_json
=
function
|
`Assoc
(
l
:
(
string
*
Yojson
.
Basic
.
json
)
list
)
->
|
`Assoc
(
l
:
(
string
*
Yojson
.
Basic
.
t
)
list
)
->
let
(
ast_node_list
,
ast_edge_list
)
=
List
.
fold_left
(
fun
(
acc_node
,
acc_edge
)
->
function
|
(
id
,
`List
[
`Assoc
feat_json_list
;
`List
succ
])
->
...
...
src/grew_graph.mli
View file @
3aac526e
...
...
@@ -9,7 +9,6 @@
(**********************************************************************************)
open
Conll
open
Yojson
.
Basic
open
Grew_base
open
Grew_types
...
...
@@ -57,7 +56,7 @@ module P_graph: sig
val
empty
:
t
val
to_json
:
?
domain
:
Domain
.
t
->
t
->
Yojson
.
Basic
.
json
val
to_json
:
?
domain
:
Domain
.
t
->
t
->
Yojson
.
Basic
.
t
val
find
:
Pid
.
t
->
t
->
P_node
.
t
...
...
@@ -118,7 +117,7 @@ module G_graph: sig
val
build
:
?
domain
:
Domain
.
t
->
?
grewpy
:
bool
->
Ast
.
gr
->
t
val
of_conll
:
?
domain
:
Domain
.
t
->
Conll
.
t
->
t
val
of_json
:
json
->
t
val
of_json
:
Yojson
.
Basic
.
t
->
t
(** input : "Le/DET/le petit/ADJ/petit chat/NC/chat dort/V/dormir ./PONCT/."
It supposes that "SUC" is defined in current relations *)
...
...
@@ -207,7 +206,7 @@ module G_graph: sig
val
to_dep
:
?
filter
:
(
string
->
bool
)
->
?
main_feat
:
string
->
?
deco
:
G_deco
.
t
->
t
->
string
val
to_conll
:
t
->
Conll
.
t
val
to_conll_string
:
?
cupt
:
bool
->
t
->
string
val
to_json
:
t
->
json
val
to_json
:
t
->
Yojson
.
Basic
.
t
val
cast
:
?
domain
:
Domain
.
t
->
t
->
t
...
...
src/grew_grs.mli
View file @
3aac526e
...
...
@@ -24,7 +24,7 @@ module Grs : sig
val
dump
:
t
->
unit
val
to_json
:
t
->
Yojson
.
Basic
.
json
val
to_json
:
t
->
Yojson
.
Basic
.
t
val
domain
:
t
->
Domain
.
t
option
val
domain_build
:
Ast
.
domain
->
Domain
.
t
...
...
src/grew_node.mli
View file @
3aac526e
...
...
@@ -88,7 +88,7 @@ module P_node: sig
val
empty
:
t
val
to_json
:
?
domain
:
Domain
.
t
->
t
->
Yojson
.
Basic
.
json
val
to_json
:
?
domain
:
Domain
.
t
->
t
->
Yojson
.
Basic
.
t
val
get_name
:
t
->
Id
.
name
val
get_fs
:
t
->
P_fs
.
t
...
...
src/grew_rule.mli
View file @
3aac526e
...
...
@@ -8,7 +8,6 @@
(* Authors: see AUTHORS file *)
(**********************************************************************************)
open
Yojson
.
Basic
open
Grew_base
open
Grew_types
open
Grew_domain
...
...
@@ -35,7 +34,7 @@ module Rule : sig
(** [get_loc t] returns the file location of the rule [t]. *)
val
get_loc
:
t
->
Loc
.
t
val
to_json
:
?
domain
:
Domain
.
t
->
t
->
Yojson
.
Basic
.
json
val
to_json
:
?
domain
:
Domain
.
t
->
t
->
Yojson
.
Basic
.
t
(** [to_dep t] returns a string in the [dep] language describing the match basic of the rule *)
val
to_dep
:
?
domain
:
Domain
.
t
->
t
->
string
...
...
@@ -51,7 +50,7 @@ module Rule : sig
val
pid_name_list
:
pattern
->
Id
.
name
list
val
to_python
:
pattern
->
G_graph
.
t
->
matching
->
json
val
to_python
:
pattern
->
G_graph
.
t
->
matching
->
Yojson
.
Basic
.
t
val
build_pattern
:
?
domain
:
Domain
.
t
->
?
lexicons
:
Lexicons
.
t
->
Ast
.
pattern
->
pattern
...
...
src/libgrew.mli
View file @
3aac526e
...
...
@@ -9,7 +9,6 @@
(**********************************************************************************)
open
Conll
open
Yojson
.
Basic
(* ==================================================================================================== *)
(** {2 General definitions} *)
...
...
@@ -56,7 +55,7 @@ end
module
Matching
:
sig
type
t
val
to_json
:
Pattern
.
t
->
Grew_graph
.
G_graph
.
t
->
t
->
json
val
to_json
:
Pattern
.
t
->
Grew_graph
.
G_graph
.
t
->
t
->
Yojson
.
Basic
.
t
val
nodes
:
Pattern
.
t
->
Grew_graph
.
G_graph
.
t
->
t
->
(
string
*
string
)
list
end
...
...
@@ -89,8 +88,8 @@ module Graph : sig
val
of_conll
:
?
domain
:
Domain
.
t
->
Conll
.
t
->
t
val
of_json
:
json
->
t
val
to_json
:
t
->
json
val
of_json
:
Yojson
.
Basic
.
t
->
t
val
to_json
:
t
->
Yojson
.
Basic
.
t
val
of_brown
:
?
domain
:
Domain
.
t
->
?
sentid
:
string
->
string
->
t
...
...
@@ -126,7 +125,7 @@ module Grs : sig
val
domain
:
t
->
Domain
.
t
option
val
to_json
:
t
->
json
val
to_json
:
t
->
Yojson
.
Basic
.
t
val
get_strat_list
:
t
->
string
list
end
...
...
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