Commit 3f7e454b authored by Bruno Guillaume's avatar Bruno Guillaume

add process doc

parent 218cb394
self_doc:
@echo "make update --> Rebuild sequoia.surf.conll and sequoia.deep.conll"
@echo "make update --> In trunk, Rebuild 3 conll files from cupt file"
@echo "make clean --> Remove automatically built files"
@echo "make mwe --> List and count MWE in Sequoia"
update:
cut -f 1-10 PARSEME-FR/sequoia-ftb.deep_and_surf.cupt_parsemefr > trunk/sequoia.deep_and_surf.conll
grew transform -grs tools/sequoia_proj.grs -strat surf -i trunk/sequoia.deep_and_surf.conll -o trunk/sequoia.surf.conll
grew transform -grs tools/sequoia_proj.grs -strat deep -i trunk/sequoia.deep_and_surf.conll -o trunk/sequoia.deep.conll
cut -f 1-10 trunk/sequoia.deep_and_surf.parseme.cupt > trunk/sequoia.deep_and_surf.conll
grew_dev transform -grs tools/sequoia_proj.grs -strat surf -i trunk/sequoia.deep_and_surf.conll -o trunk/sequoia.surf.conll
grew_dev transform -grs tools/sequoia_proj.grs -strat deep -i trunk/sequoia.deep_and_surf.conll -o trunk/sequoia.deep.conll
clean:
rm -f trunk/sequoia.surf.conll trunk/sequoia.deep.conll
......
compile:
dot -Tsvg -o process.svg process.dot
digraph G {
node [shape=box, fontname=Menlo]
das_cupt [shape=box; label = "trunk/sequoia.deep_and_surf.parseme.cupt", style=filled, fillcolor="#ABCDEF"]
das_conll [shape=box; label = "trunk/sequoia.deep_and_surf.conll", style=filled, fillcolor="#A5D993"]
cut [shape=Mrecord, style=rounded, label = "cut -f 1-10"]
das_cupt -> cut -> das_conll;
s_conll [shape=box; label = "trunk/sequoia.surf.conll", style=filled, fillcolor="#A5D993"]
grew_surf [shape=Mrecord, style=rounded, label = "sequoia_proj.grs (strat=surf)"]
das_conll -> grew_surf -> s_conll;
d_conll [shape=box; label = "trunk/sequoia.deep.conll", style=filled, fillcolor="#A5D993"]
grew_deep [shape=Mrecord, style=rounded, label = "sequoia_proj.grs (strat=deep)"]
das_conll -> grew_deep -> d_conll;
ud_seq [shape=box, label = "ud/fr_sequoia-ud.conllu", style=filled, fillcolor="#A5D993"]
ssq_ud [shape=Mrecord, style=rounded, label = "ssq_to_ud/main.grs"]
s_conll -> ssq_ud -> ud_seq
s_cupt [shape=box; label = "trunk/sequoia.surf.parseme.cupt", style=filled, fillcolor="#ABCDEF"]
grew_surf_cupt [shape=Mrecord, style=rounded, label = "sequoia_proj.grs (strat=surf)"]
das_cupt -> grew_surf_cupt -> s_cupt;
ud_seq_cupt [shape=box, label = "ud/fr_sequoia-ud.parseme.cupt", style=filled, fillcolor="#ABCDEF"]
ssq_ud_cupt [shape=Mrecord, style=rounded, label = "ssq_to_ud/main.grs"]
s_cupt -> ssq_ud_cupt -> ud_seq_cupt
{rank=same; grew_surf; grew_deep; grew_surf_cupt}
{rank=same; d_conll; s_conll; s_cupt}
}
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.40.1 (20161225.0304)
-->
<!-- Title: G Pages: 1 -->
<svg width="836pt" height="479pt"
viewBox="0.00 0.00 835.50 479.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 475)">
<title>G</title>
<polygon fill="#ffffff" stroke="transparent" points="-4,4 -4,-475 831.5,-475 831.5,4 -4,4"/>
<!-- das_cupt -->
<g id="node1" class="node">
<title>das_cupt</title>
<polygon fill="#abcdef" stroke="#000000" points="725.5,-471 371.5,-471 371.5,-435 725.5,-435 725.5,-471"/>
<text text-anchor="middle" x="548.5" y="-449.3" font-family="Menlo" font-size="14.00" fill="#000000">trunk/sequoia.deep_and_surf.parseme.cupt</text>
</g>
<!-- cut -->
<g id="node3" class="node">
<title>cut</title>
<path fill="none" stroke="#000000" d="M465,-362.5C465,-362.5 550,-362.5 550,-362.5 556,-362.5 562,-368.5 562,-374.5 562,-374.5 562,-386.5 562,-386.5 562,-392.5 556,-398.5 550,-398.5 550,-398.5 465,-398.5 465,-398.5 459,-398.5 453,-392.5 453,-386.5 453,-386.5 453,-374.5 453,-374.5 453,-368.5 459,-362.5 465,-362.5"/>
<text text-anchor="middle" x="507.5" y="-376.8" font-family="Menlo" font-size="14.00" fill="#000000">cut &#45;f 1&#45;10</text>
</g>
<!-- das_cupt&#45;&gt;cut -->
<g id="edge1" class="edge">
<title>das_cupt&#45;&gt;cut</title>
<path fill="none" stroke="#000000" d="M538.154,-434.7052C533.4569,-426.3994 527.8084,-416.4112 522.6468,-407.2839"/>
<polygon fill="#000000" stroke="#000000" points="525.6699,-405.5194 517.7007,-398.5378 519.5767,-408.9652 525.6699,-405.5194"/>
</g>
<!-- grew_surf_cupt -->
<g id="node11" class="node">
<title>grew_surf_cupt</title>
<path fill="none" stroke="#000000" d="M570,-217.5C570,-217.5 807,-217.5 807,-217.5 813,-217.5 819,-223.5 819,-229.5 819,-229.5 819,-241.5 819,-241.5 819,-247.5 813,-253.5 807,-253.5 807,-253.5 570,-253.5 570,-253.5 564,-253.5 558,-247.5 558,-241.5 558,-241.5 558,-229.5 558,-229.5 558,-223.5 564,-217.5 570,-217.5"/>
<text text-anchor="middle" x="688.5" y="-231.8" font-family="Menlo" font-size="14.00" fill="#000000">sequoia_proj.grs (strat=surf)</text>
</g>
<!-- das_cupt&#45;&gt;grew_surf_cupt -->
<g id="edge9" class="edge">
<title>das_cupt&#45;&gt;grew_surf_cupt</title>
<path fill="none" stroke="#000000" d="M560.1955,-434.8302C584.8499,-396.5279 642.2591,-307.3385 671.1862,-262.3982"/>
<polygon fill="#000000" stroke="#000000" points="674.2698,-264.0741 676.7393,-253.7711 668.3838,-260.2854 674.2698,-264.0741"/>
</g>
<!-- das_conll -->
<g id="node2" class="node">
<title>das_conll</title>
<polygon fill="#a5d993" stroke="#000000" points="557,-326 262,-326 262,-290 557,-290 557,-326"/>
<text text-anchor="middle" x="409.5" y="-304.3" font-family="Menlo" font-size="14.00" fill="#000000">trunk/sequoia.deep_and_surf.conll</text>
</g>
<!-- grew_surf -->
<g id="node5" class="node">
<title>grew_surf</title>
<path fill="none" stroke="#000000" d="M12,-217.5C12,-217.5 249,-217.5 249,-217.5 255,-217.5 261,-223.5 261,-229.5 261,-229.5 261,-241.5 261,-241.5 261,-247.5 255,-253.5 249,-253.5 249,-253.5 12,-253.5 12,-253.5 6,-253.5 0,-247.5 0,-241.5 0,-241.5 0,-229.5 0,-229.5 0,-223.5 6,-217.5 12,-217.5"/>
<text text-anchor="middle" x="130.5" y="-231.8" font-family="Menlo" font-size="14.00" fill="#000000">sequoia_proj.grs (strat=surf)</text>
</g>
<!-- das_conll&#45;&gt;grew_surf -->
<g id="edge3" class="edge">
<title>das_conll&#45;&gt;grew_surf</title>
<path fill="none" stroke="#000000" d="M340.1752,-289.9855C300.5822,-279.697 250.7912,-266.7585 209.6658,-256.0717"/>
<polygon fill="#000000" stroke="#000000" points="210.5105,-252.6751 199.9516,-253.5475 208.7499,-259.4501 210.5105,-252.6751"/>
</g>
<!-- grew_deep -->
<g id="node7" class="node">
<title>grew_deep</title>
<path fill="none" stroke="#000000" d="M291,-217.5C291,-217.5 528,-217.5 528,-217.5 534,-217.5 540,-223.5 540,-229.5 540,-229.5 540,-241.5 540,-241.5 540,-247.5 534,-253.5 528,-253.5 528,-253.5 291,-253.5 291,-253.5 285,-253.5 279,-247.5 279,-241.5 279,-241.5 279,-229.5 279,-229.5 279,-223.5 285,-217.5 291,-217.5"/>
<text text-anchor="middle" x="409.5" y="-231.8" font-family="Menlo" font-size="14.00" fill="#000000">sequoia_proj.grs (strat=deep)</text>
</g>
<!-- das_conll&#45;&gt;grew_deep -->
<g id="edge5" class="edge">
<title>das_conll&#45;&gt;grew_deep</title>
<path fill="none" stroke="#000000" d="M409.5,-289.7052C409.5,-281.832 409.5,-272.4471 409.5,-263.7167"/>
<polygon fill="#000000" stroke="#000000" points="413.0001,-263.5378 409.5,-253.5378 406.0001,-263.5378 413.0001,-263.5378"/>
</g>
<!-- cut&#45;&gt;das_conll -->
<g id="edge2" class="edge">
<title>cut&#45;&gt;das_conll</title>
<path fill="none" stroke="#000000" d="M483.0233,-362.3922C470.6287,-353.2228 455.4136,-341.9667 442.0466,-332.0779"/>
<polygon fill="#000000" stroke="#000000" points="444.1252,-329.2619 434.0044,-326.1282 439.962,-334.8894 444.1252,-329.2619"/>
</g>
<!-- s_conll -->
<g id="node4" class="node">
<title>s_conll</title>
<polygon fill="#a5d993" stroke="#000000" points="240,-181 21,-181 21,-145 240,-145 240,-181"/>
<text text-anchor="middle" x="130.5" y="-159.3" font-family="Menlo" font-size="14.00" fill="#000000">trunk/sequoia.surf.conll</text>
</g>
<!-- ssq_ud -->
<g id="node9" class="node">
<title>ssq_ud</title>
<path fill="none" stroke="#000000" d="M58.5,-72.5C58.5,-72.5 202.5,-72.5 202.5,-72.5 208.5,-72.5 214.5,-78.5 214.5,-84.5 214.5,-84.5 214.5,-96.5 214.5,-96.5 214.5,-102.5 208.5,-108.5 202.5,-108.5 202.5,-108.5 58.5,-108.5 58.5,-108.5 52.5,-108.5 46.5,-102.5 46.5,-96.5 46.5,-96.5 46.5,-84.5 46.5,-84.5 46.5,-78.5 52.5,-72.5 58.5,-72.5"/>
<text text-anchor="middle" x="130.5" y="-86.8" font-family="Menlo" font-size="14.00" fill="#000000">ssq_to_ud/main.grs</text>
</g>
<!-- s_conll&#45;&gt;ssq_ud -->
<g id="edge7" class="edge">
<title>s_conll&#45;&gt;ssq_ud</title>
<path fill="none" stroke="#000000" d="M130.5,-144.7052C130.5,-136.832 130.5,-127.4471 130.5,-118.7167"/>
<polygon fill="#000000" stroke="#000000" points="134.0001,-118.5378 130.5,-108.5378 127.0001,-118.5378 134.0001,-118.5378"/>
</g>
<!-- grew_surf&#45;&gt;s_conll -->
<g id="edge4" class="edge">
<title>grew_surf&#45;&gt;s_conll</title>
<path fill="none" stroke="#000000" d="M130.5,-217.2052C130.5,-209.332 130.5,-199.9471 130.5,-191.2167"/>
<polygon fill="#000000" stroke="#000000" points="134.0001,-191.0378 130.5,-181.0378 127.0001,-191.0378 134.0001,-191.0378"/>
</g>
<!-- d_conll -->
<g id="node6" class="node">
<title>d_conll</title>
<polygon fill="#a5d993" stroke="#000000" points="519,-181 300,-181 300,-145 519,-145 519,-181"/>
<text text-anchor="middle" x="409.5" y="-159.3" font-family="Menlo" font-size="14.00" fill="#000000">trunk/sequoia.deep.conll</text>
</g>
<!-- grew_deep&#45;&gt;d_conll -->
<g id="edge6" class="edge">
<title>grew_deep&#45;&gt;d_conll</title>
<path fill="none" stroke="#000000" d="M409.5,-217.2052C409.5,-209.332 409.5,-199.9471 409.5,-191.2167"/>
<polygon fill="#000000" stroke="#000000" points="413.0001,-191.0378 409.5,-181.0378 406.0001,-191.0378 413.0001,-191.0378"/>
</g>
<!-- ud_seq -->
<g id="node8" class="node">
<title>ud_seq</title>
<polygon fill="#a5d993" stroke="#000000" points="235.5,-36 25.5,-36 25.5,0 235.5,0 235.5,-36"/>
<text text-anchor="middle" x="130.5" y="-14.3" font-family="Menlo" font-size="14.00" fill="#000000">ud/fr_sequoia&#45;ud.conllu</text>
</g>
<!-- ssq_ud&#45;&gt;ud_seq -->
<g id="edge8" class="edge">
<title>ssq_ud&#45;&gt;ud_seq</title>
<path fill="none" stroke="#000000" d="M130.5,-72.2052C130.5,-64.332 130.5,-54.9471 130.5,-46.2167"/>
<polygon fill="#000000" stroke="#000000" points="134.0001,-46.0378 130.5,-36.0378 127.0001,-46.0378 134.0001,-46.0378"/>
</g>
<!-- s_cupt -->
<g id="node10" class="node">
<title>s_cupt</title>
<polygon fill="#abcdef" stroke="#000000" points="827.5,-181 549.5,-181 549.5,-145 827.5,-145 827.5,-181"/>
<text text-anchor="middle" x="688.5" y="-159.3" font-family="Menlo" font-size="14.00" fill="#000000">trunk/sequoia.surf.parseme.cupt</text>
</g>
<!-- ssq_ud_cupt -->
<g id="node13" class="node">
<title>ssq_ud_cupt</title>
<path fill="none" stroke="#000000" d="M616.5,-72.5C616.5,-72.5 760.5,-72.5 760.5,-72.5 766.5,-72.5 772.5,-78.5 772.5,-84.5 772.5,-84.5 772.5,-96.5 772.5,-96.5 772.5,-102.5 766.5,-108.5 760.5,-108.5 760.5,-108.5 616.5,-108.5 616.5,-108.5 610.5,-108.5 604.5,-102.5 604.5,-96.5 604.5,-96.5 604.5,-84.5 604.5,-84.5 604.5,-78.5 610.5,-72.5 616.5,-72.5"/>
<text text-anchor="middle" x="688.5" y="-86.8" font-family="Menlo" font-size="14.00" fill="#000000">ssq_to_ud/main.grs</text>
</g>
<!-- s_cupt&#45;&gt;ssq_ud_cupt -->
<g id="edge11" class="edge">
<title>s_cupt&#45;&gt;ssq_ud_cupt</title>
<path fill="none" stroke="#000000" d="M688.5,-144.7052C688.5,-136.832 688.5,-127.4471 688.5,-118.7167"/>
<polygon fill="#000000" stroke="#000000" points="692.0001,-118.5378 688.5,-108.5378 685.0001,-118.5378 692.0001,-118.5378"/>
</g>
<!-- grew_surf_cupt&#45;&gt;s_cupt -->
<g id="edge10" class="edge">
<title>grew_surf_cupt&#45;&gt;s_cupt</title>
<path fill="none" stroke="#000000" d="M688.5,-217.2052C688.5,-209.332 688.5,-199.9471 688.5,-191.2167"/>
<polygon fill="#000000" stroke="#000000" points="692.0001,-191.0378 688.5,-181.0378 685.0001,-191.0378 692.0001,-191.0378"/>
</g>
<!-- ud_seq_cupt -->
<g id="node12" class="node">
<title>ud_seq_cupt</title>
<polygon fill="#abcdef" stroke="#000000" points="819,-36 558,-36 558,0 819,0 819,-36"/>
<text text-anchor="middle" x="688.5" y="-14.3" font-family="Menlo" font-size="14.00" fill="#000000">ud/fr_sequoia&#45;ud.parseme.cupt</text>
</g>
<!-- ssq_ud_cupt&#45;&gt;ud_seq_cupt -->
<g id="edge12" class="edge">
<title>ssq_ud_cupt&#45;&gt;ud_seq_cupt</title>
<path fill="none" stroke="#000000" d="M688.5,-72.2052C688.5,-64.332 688.5,-54.9471 688.5,-46.2167"/>
<polygon fill="#000000" stroke="#000000" points="692.0001,-46.0378 688.5,-36.0378 685.0001,-46.0378 692.0001,-46.0378"/>
</g>
</g>
</svg>
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