bootphon / wordseg

A Python toolbox for text based word segmentation
https://docs.cognitive-ml.fr/wordseg
GNU General Public License v3.0
16 stars 7 forks source link

bash exemples for wordseg-ag #23

Closed mmmaat closed 6 years ago

mmmaat commented 6 years ago

We need to have command-line exemples somewhere in the docs, or to improve the --help messages so that they are understandable to newcomers.

mmmaat commented 6 years ago

@alecristia is it good idea to add a section with command-line examples in https://wordseg.readthedocs.io/en/latest/bash_reference.html ? Or are you refactoring this part of the docs ?

alecristia commented 6 years ago

My goal is to eventually add it to the tutorial and bash reference, so if you just want to throw it at me, I'll get it added! ​

alecristia commented 6 years ago

correction, the tutorial already has a dpseg example -- sorry about that!

mmmaat commented 6 years ago

AG example (with your new test data):


# assuming we are in the wordseg root directory
GRAMMAR=data/ag/Colloc0_enFestival.lt
CATEGORY=Colloc0
cat test/data/tagged.txt | wordseg-prep | wordseg-ag  $GRAMMAR $CATEGORY --njobs 4 --verbose > segmented.txt