Commit cdf74ecb authored by Bruno Guillaume's avatar Bruno Guillaume

Fix typo towards new command line args

parent 787621ad
......@@ -76,7 +76,7 @@ graph {
}
~~~
With the command `grew -det -grs add_edge_pattern.grs -gr input.gr -o output.gr`, the rewriting will produce the graph `output.gr` below.
With the command `grew transform -grs add_edge_pattern.grs -i input.gr -o output.gr`, the rewriting will produce the graph `output.gr` below.
| `input.gr` | `output.gr` |
|:---:|:---:|
......
......@@ -25,20 +25,19 @@ With **Grew**, this representation can be computed from the surface syntax in tw
## Building the mixed structure
The GRS used to build the mixed **deep_and_surf** structure can be obtained by:
```
git clone https://gitlab.inria.fr/grew/SSQtoDSQ.git
```
`git clone https://gitlab.inria.fr/grew/SSQtoDSQ.git`
The input of the GRS which produced the **deep_and_surf** structure is the **surf** structure.
We recall here the surface structure (see [Dependency parsing](../parsing) page) for our example sentence and we suppose that the file [`test.surf.conll`](/deep_syntax/test.surf.conll) contains the Conll description below:
We recall here the surface structure (see [Dependency parsing](../parsing) page) for our example sentence and we suppose that the file [`test.surf.conll`](/deep_syntax/test.surf.conll) contains the CoNLL description below:
{{< input file="/static/deep_syntax/test.surf.conll" >}}
The mixed structure is then computed with the command:
```
grew transform -grs SSQtoDSQ/grs/main_dsq.grs -i test.surf.conll -o test.mix.conll
```
which produces the file [`test.deep_and_surf.melt`](/deep_syntax/test.deep_and_surf.melt) which contains the code below corresponding the next figure
`grew transform -grs SSQtoDSQ/grs/main_dsq.grs -i test.surf.conll -o test.deep_and_surf.conll`
which produces the file [`test.deep_and_surf.conll`](/deep_syntax/test.deep_and_surf.conll) which contains the code below corresponding the next figure
{{< input file="/static/deep_syntax/test.deep_and_surf.conll" >}}
......@@ -49,16 +48,16 @@ The deep structure is a projection form the mixed structure.
This projection is realized with à GRS file `sequoia_proj.grs` which can be download with the commands:
```
wget https://gitlab.inria.fr/sequoia/deep-sequoia/raw/master/tools/sequoia_decl.dom
wget https://gitlab.inria.fr/sequoia/deep-sequoia/raw/master/tools/sequoia.dom
wget https://gitlab.inria.fr/sequoia/deep-sequoia/raw/master/tools/sequoia_proj.grs
```
The deep structure is then computed with the command:
```
grew -det -grs sequoia_proj.grs -strat deep -i test.deep_and_surf.conll -f test.deep.conll
```
The output is given below (code and picture):
`grew transform -grs sequoia_proj.grs -strat deep -i test.deep_and_surf.conll -o test.deep.conll`
`grew transform -grs sequoia_proj.grs -strat deep -i test.deep_and_surf.conll -o test.deep.conll`
The output [`test.deep.conll`](/deep_syntax/test.deep.conll) is given below (code and picture):
{{< input file="/static/deep_syntax/test.deep.conll" >}}
......
......@@ -11,7 +11,7 @@ Description = ""
**Grew-parse-FR** is natural language parser for French.
It is composed of a GRS (Graph Rewriting System) which can be used with the Grew software to produce dependency syntax structures from POS-tagged data.
With a POS-tagger (**MElt** is a recommended), it provides a full parser with sentences as input and dependency structures as output
With a POS-tagger (**MElt** is recommended), it provides a full parser with sentences as input and dependency structures as output.
The parsing GRS is described in an [IWPT 2015 publication](https://hal.inria.fr/hal-01188694).
# How to parse a sentence?
......@@ -22,9 +22,8 @@ We consider the sentence:
The parsing is done in two steps:
1. POS-tagging with **MElt**: `echo "La souris a été mangée par le chat." | MElt -L -T > test.melt`
2. Building the dependency syntax structure: `grew -det -grs POStoSSQ/grs/surf_synt_main.grs -strat full -i test.melt -f test.conll`
1. POS-tagging with **MElt**
2. Building the dependency syntax structure by applying Graph Rewriting System
# Prerequisite
......@@ -50,12 +49,13 @@ produces the file [`test.melt`](/parsing/test.melt):
## Parsing with the GRS
With the file `test.melt` described above, the following command produces the Conll code of the parsed sentence:
With the file [`test.melt`](/parsing/test.melt) described above, the following command produces the CoNLL code of the parsed sentence:
`grew transform -grs POStoSSQ/grs/surf_synt_main.grs -i test.melt -o test.surf.conll`
`grew transform -grs POStoSSQ/grs/surf_synt_main.grs -i test.melt -o test.conll`
The output file is [`test.conll`](/parsing/test.conll):
The output file is [`test.surf.conll`](/parsing/test.surf.conll):
{{< input file="/static/parsing/test.conll" >}}
{{< input file="/static/parsing/test.surf.conll" >}}
which encodes the syntactic structure:
......
......@@ -33,8 +33,8 @@ Required arguments for this mode are:
where:
* `<grs_file>` is the main file which describes Graph Rewriting System
* `<input_file>`: describes the input data (CONLL file of gr file)
* `<output_file>`: is the name of the output file (CONLL file)
* `<input_file>`: describes the input data (CoNLL file of gr file)
* `<output_file>`: is the name of the output file (CoNLL file)
Optional argument is:
......
......@@ -26,7 +26,7 @@ More detailled informations in files `CHANGES.md` for each sub-project: [libcaml
# Version 0.45 on October 10, 2017
* features structures given in column 10 of ConLL are kept in the output
* features structures given in column 10 of CoNLL are kept in the output
* :warning: new grs syntax ([grs](../grs)) is required; old syntax can be used with the command line argument `-old_grs`
* :warning: in patterns, implicit node declaration is available only for nodes in edge (see below)
......
......@@ -8,9 +8,9 @@ run:
ln -s /Users/guillaum/gitlab/deep-sequoia/tools/sequoia.dom
ln -s /Users/guillaum/gitlab/deep-sequoia/tools/sequoia_proj.grs
echo "La souris a été mangée par le chat." | MElt -L -T > test.melt
grew -det -grs POStoSSQ/grs/surf_synt_main.grs -strat full -i test.melt -f test.surf.conll
grew -det -grs SSQtoDSQ/grs/main_dsq.grs -i test.surf.conll -f test.deep_and_surf.conll
grew -det -grs sequoia_proj.grs -strat deep -i test.deep_and_surf.conll -f test.deep.conll
grew transform -grs POStoSSQ/grs/surf_synt_main.grs -i test.melt -o test.surf.conll
grew transform -grs SSQtoDSQ/grs/main_dsq.grs -i test.surf.conll -o test.deep_and_surf.conll
grew transform -grs sequoia_proj.grs -strat deep -i test.deep_and_surf.conll -o test.deep.conll
rm -f POStoSSQ SSQtoDSQ sequoia.dom sequoia_proj.grs
img: figures
......
......@@ -5,9 +5,9 @@ selfdoc:
run:
ln -s /Users/guillaum/gitlab/grew/POStoSSQ
echo "La souris a été mangée par le chat." | MElt -L -T > test.melt
grew -det -grs POStoSSQ/grs/surf_synt_main.grs -strat full -i test.melt -f test.conll
grew transform -grs POStoSSQ/grs/surf_synt_main.grs -i test.melt -o test.surf.conll
cat tdm80_ch01.txt | MElt -L -T > tdm80_ch01.melt
grew -det -grs POStoSSQ/grs/surf_synt_main.grs -strat full -i tdm80_ch01.melt -f tdm80_ch01.conll
grew transform -grs POStoSSQ/grs/surf_synt_main.grs -i tdm80_ch01.melt -o tdm80_ch01.conll
rm -f POStoSSQ
img: figures
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment