Open sushain97 opened 5 years ago
It should be pretty easy to add more flags. Simply adding more case
in switch should allow more flags. I'll need some input and output to check proper function of the individual flags.
Indeed. We should do some sort of an audit of existing pairs/modules to figure out what else we should support.
@sushain97 a command like this should give an idea, although I don't have all the pairs checked out at the moment:
$ find . -name 'modes.xml' | xargs cat | grep '<program ' | grep -v '<!--' | sed 's/^[\t ]*//g' | sort -f | uniq -c | sort -gr
206 <program name="apertium-pretransfer"/>
181 <program name="lt-proc -w">
147 <program name="lt-proc -b">
130 <program name="apertium-tagger -g $2">
91 <program name="apertium-transfer -b">
83 <program name="lt-proc">
78 <program name="lrx-proc -m">
71 <program name="apertium-transfer -n">
67 <program name="lt-proc $1">
57 <program name="apertium-interchunk">
52 <program name="cg-proc -w">
49 <program name="lt-proc -p">
49 <program name="apertium-postchunk">
43 <program name="cg-proc -n -w -1">
32 <program name="apertium-transfer">
21 <program name="cg-proc -n -w -1">
20 <program name="vislcg3 --trace --grammar">
18 <program name="lrx-proc">
18 <program name="cg-proc">
16 <program name="lt-proc -d">
15 <program name="lsx-proc">
12 <program name="cg-conv -a"/>
12 <program name="apertium-tagger -p -g $2">
10 <program name="cg-proc -w -1 -n">
10 <program name="apertium-tagger -u 2 -g $2">
9 <program name="cg-proc -w" debug-suff="disamb">
9 <program name="apertium-transfer -b -t">
8 <program name="lrx-proc -m -t">
7 <program name="cg-proc -n -w">
7 <program name="cg-conv -a -l"/>
7 <program name="apertium-transfer -b" debug-suff="transfer">
6 <program name="lt-proc -x">
5 <program name="lt-proc -c -p ">
5 <program name="lrx-proc -t">
5 <program name="apertium-transfer -t -b">
5 <program name="apertium-interchunk -t">
4 <program name="lt-proc -c -p">
4 <program name="hfst-proc -w">
3 <program name="cg-proc -w -n -1">
3 <program name="apertium-transfer -t -n">
3 <program name="apertium-transfer -n -t">
2 <program name="lt-proc -w -e">
1 <program name="cg-conv -a "/>
Do we need to do this? We should check what flags people actually use in the modes.