Menu

#87 lt-proc -d doesn't show exact (failing) input tags

open
nobody
2017-05-18
2015-12-06
No

actual output:

$ echo '^omstende<n><nt><ut><sg><ind>$'|lt-proc -d nno/nno.autogen.bin 
  #omstende\<n\>\<nt\>\<sg\>\<ind\>

expected:

$ echo '^omstende<n><nt><ut><sg><ind>$'|lt-proc -d nno/nno.autogen.bin 
  #omstende\<n\>\<nt\>\<ut\>\<sg\>\<ind\>

where a correct analysis is e.g.

$ echo '^omstende<n><nt><sg><ind>$'|lt-proc -d nno/nno.autogen.bin 
omstende
1 Attachments

Discussion

  • Kevin Brubeck Unhammer

    example fst

     
  • Kevin Brubeck Unhammer

    • Attachments has changed:

    Diff:

    --- old
    +++ new
    @@ -0,0 +1 @@
    +nno.autogen.bin (924.2 kB; application/octet-stream)
    
     
  • Jim O'Regan

    Jim O'Regan - 2017-05-18

    It looks like <ut> is just being deleted there:
    $ echo '^omstende<n><ut><nt><sg><ind>$' |lt-proc -d /tmp/nno.autogen.bin </ind></sg></nt></ut></n></ut>

    omstende\<n>\<nt>\<sg>\<ind>

    echo '^omstende<n><ut><ut><sg><ind>$' |lt-proc -d /tmp/nno.autogen.bin </ind></sg></ut></ut></n>

    omstende\<n>\<sg>\<ind>

    $ echo '^omstende<n><ut><sg><ind>$' |lt-proc -d /tmp/nno.autogen.bin </ind></sg></ut></n>

    omstende\<n>\<sg>\<ind>

     
  • Jim O'Regan

    Jim O'Regan - 2017-05-18

    echo '^omstende<n><ut><sg><ind><foo><bar>$' |lt-proc -d /tmp/nno.autogen.bin
    #omstende\<n>\<sg>\<ind>
    It's because there is no <ut> symbol in there[1]. Maybe retitle this to be that tags that aren't in the dictionary should be somehow marked?</ut></bar></foo></ind></sg></ut></n>

    [1] lt-print /tmp/nno.autogen.bin |grep '<ut>' gives nothing, at least</ut>

     
    • Kevin Brubeck Unhammer

      I was expecting the debug output to be exactly the input for the #-marked lu's. The string #omstende\<n>\<sg>\<ind> isn't anywhere (not in input, not in the bin), so it's rather unhelpful (and makes it hard to do testvoc using -d output).

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.