andreasvc / disco-dop

Discontinuous Data-Oriented Parsing
http://discodop.readthedocs.io
GNU General Public License v2.0
46 stars 16 forks source link

discodop fragments -o gives an error on non-ascii output when input is not discontinuous #33

Closed andreasvc closed 10 years ago

andreasvc commented 10 years ago
$ discodop fragments tt.mrg -o /tmp/foo
[...]
  File "/home/andreas/.local/lib/python2.7/site-packages/discodop/fragments.py", line 617, in printfragments
    if PARAMS['disc'] else a, freq))
TypeError: must be unicode, not str