Getting startedΒΆ

  1. Unpack dep_tregex.zip

    $ unzip dep_tregex.zip
    
  2. Test the module.

    $ cd dep_tregex/
    $ python -m'dep_tregex'
    
    usage: python -mdep_tregex [-h]
                               {words,wc,nth,head,tail,shuf,grep,sed,html,gdb} ...
    
    positional arguments:
      {words,wc,nth,head,tail,shuf,grep,sed,html,gdb}
        words               extract words from tree
        wc                  count trees
        nth                 print only Nth tree
        head                print only first N trees
        tail                print only last N trees
        shuf                shuffle trees
        grep                filter trees by pattern
        sed                 apply tree scripts to trees
        html                view trees in browser
        gdb                 view step-by-step invocation
    
    optional arguments:
      -h, --help            show this help message and exit
    
  3. Test a cooler feature.

    $ python -m'dep_tregex' html <en-ud-test.conllu
    

    A new browser window should open with some dependency trees in it.

    What root Morphed advcl if mark Google nsubj GoogleOS nmod ? punct Into case
  4. You’re all set (just don’t leave the dep_tregex/ folder).