Did I find the right examples for you? yes no

# analyse_verbal_structure.refine_subsentence

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
```transform some subsentence to relative
Input=verbal structure                         Output=verbal structure
```

```        def refine_subsentence(vg):
"""
transform some subsentence to relative
Input=verbal structure                         Output=verbal structure
"""

#init
i = 0

while i < len(vg.vrb_sub_sentence):

if vg.vrb_sub_sentence[i].aim == 'what':
#We have to make some changers
vg.vrb_sub_sentence[i].aim = 'that'
vg.vrb_sub_sentence[i].data_type = RELATIVE
#We add nominal group in relative as direct object
vg.vrb_sub_sentence[i].sv[0].d_obj = vg.vrb_sub_sentence[i].sv[0].d_obj + [
Nominal_Group(['the'], ['thing'], [], [], [])]
#We create a nominal group
gn = Nominal_Group(['the'], ['thing'], [], [], [vg.vrb_sub_sentence[i]])
vg.d_obj = vg.d_obj + [gn]
#We delete the subsentence
vg.vrb_sub_sentence = vg.vrb_sub_sentence[:i] + vg.vrb_sub_sentence[i + 1:]
i -= 1

if i >= 0 and vg.vrb_sub_sentence[i].aim == 'where':
#We have to make some changers
vg.vrb_sub_sentence[i].data_type = RELATIVE
#We create a nominal group
gn = Nominal_Group(['the'], ['location'], [], [], [vg.vrb_sub_sentence[i]])
#We add the relative and the nominal group into the sentence
vg.i_cmpl = vg.i_cmpl + [Indirect_Complement(['in'], [gn])]

for l in ResourcePool().indirect_transitive:
if l == vg.vrb_main[0]:
vg.i_cmpl[len(vg.i_cmpl) - 1].prep = []
break

#We delete the subsentence
vg.vrb_sub_sentence = vg.vrb_sub_sentence[:i] + vg.vrb_sub_sentence[i + 1:]
i -= 1

i += 1
return vg
```

```
vg = analyse_verbal_structure.refine_indirect_complement(vg)
vg = analyse_verbal_structure.refine_subsentence(vg)
vg = analyse_verbal_structure.DOC_to_IOC(vg)

```
```
vg = analyse_verbal_structure.refine_indirect_complement(vg)
vg = analyse_verbal_structure.refine_subsentence(vg)
vg = analyse_verbal_structure.DOC_to_IOC(vg)

```