Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support more flags for existing wrappers #48

Open
sushain97 opened this issue Jun 25, 2019 · 3 comments
Open

Support more flags for existing wrappers #48

sushain97 opened this issue Jun 25, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@sushain97
Copy link
Member

Do we need to do this? We should check what flags people actually use in the modes.

@sushain97 sushain97 added the enhancement New feature or request label Jun 25, 2019
@singh-lokendra
Copy link
Collaborator

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.

@sushain97
Copy link
Member Author

Indeed. We should do some sort of an audit of existing pairs/modules to figure out what else we should support.

@ftyers
Copy link
Member

ftyers commented Jun 30, 2019

@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 "/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants