Deep syntax

The goal of the deep syntax is to give a linguistic description of sentences which is closer to a semantic representation. More information about deep syntax can be found on the Deep-sequoia project.

For the sentence:

the deep structure (following Deep-sequoia guidelines) is: Deep dependency structure

With Grew, this representation can be computed from the surface syntax in two steps:

  1. A general representation (called deep_and_surf) encodes both surface and deep syntax in the same structure.
  2. A projection from the deep_and_surf to the deep structure

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

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 page) for our example sentence and we suppose that the file test.surf.conll contains the CoNLL-U description below:

# sent_id = 00000
1	La	le	D	DET	_	2	det	_	_
2	souris	souris	N	NC	s=c	5	suj	_	_
3	a	avoir	V	V	m=ind	5	aux.tps	_	_
4	été	être	V	VPP	m=part|t=past	5	aux.pass	_	_
5	mangée	manger	V	VPP	m=part|t=past	_	_	_	_
6	par	par	P	P	_	5	p_obj.agt	_	_
7	le	le	D	DET	_	8	det	_	_
8	chat	chat	N	NC	s=c	6	obj.p	_	_
9	.	.	PONCT	PONCT	_	5	ponct	_	_

The mixed structure is then computed with the command:

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 which contains the code below corresponding the next figure

# sent_id = 00000
1	La	le	D	DET	_	2	det	_	_
2	souris	souris	N	NC	s=c	5	suj:obj	_	_
3	a	avoir	V	V	dl=avoir|m=ind|void=y	5	S:aux.tps	_	_
4	été	être	V	VPP	dl=être|m=part|t=past|void=y	5	S:aux.pass	_	_
5	mangée	manger	V	VPP	diat=passif|dl=manger|m=part|t=past	_	_	_	_
6	par	par	P	P	void=y	5	S:p_obj.agt:suj	_	_
7	le	le	D	DET	_	8	det	_	_
8	chat	chat	N	NC	s=c	6|5	S:obj.p|D:p_obj.agt:suj	_	_
9	.	.	PONCT	PONCT	_	5	ponct	_	_

Mixed dependency structure

Building the deep structure

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.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 transform -grs sequoia_proj.grs -strat deep -i test.deep_and_surf.conll -o test.deep.conll

The output test.deep.conll is given below (code and picture):

# sent_id = 00000
1	La	le	D	DET	_	2	det	_	_
2	souris	souris	N	NC	s=c	5	obj	_	_
3	a	avoir	V	V	dl=avoir|m=ind|void=y	0	void	_	_
4	été	être	V	VPP	dl=être|m=part|t=past|void=y	0	void	_	_
5	mangée	manger	V	VPP	diat=passif|dl=manger|m=part|t=past	_	_	_	_
6	par	par	P	P	void=y	0	void	_	_
7	le	le	D	DET	_	8	det	_	_
8	chat	chat	N	NC	s=c	5	suj	_	_
9	.	.	PONCT	PONCT	_	5	ponct	_	_

Deep dependency structure