CQCL / lambeq

A high-level Python library for Quantum Natural Language Processing
https://docs.quantinuum.com/lambeq/
Apache License 2.0
455 stars 111 forks source link

A sentence on which bobcat parser fails #73

Closed mithunpaul08 closed 1 year ago

mithunpaul08 commented 1 year ago

Refer this comment on discord

The judge decides whether or not the defendant is guilty of the crime

@dimkart said raise a request so that eventually someone can look into it.

dimkart commented 1 year ago

Thanks for this, it is indeed puzzling. "The judge decides whether or not the defendant is guilty" fails, while for example the following is parsed correctly:

The  judge  decides  whether    or   not   the  sky      is       blue                                                                                                           
═══  ═════  ═══════  ═══════   ════  ═══   ═══  ═══  ═══════════  ════
n/n    n    (s\n)/s    s/s     conj  s/s   n/n   n   (s\n)/(s\n)  s\n 
─────────>                    ────────<&>  ───────>  ────────────────>
    n                         (s/s)\(s/s)     n             s\n       
                     ───────────────────<  ──────────────────────────<
                             s/s                        s             
                     ────────────────────────────────────────────────>
                                             s                        
            ─────────────────────────────────────────────────────────>
                                       s\n                            
─────────────────────────────────────────────────────────────────────<
                                  s                                   
(main) dimkart@Dimitris-MBP ~/w/l/docs (new_release_docs)> 

@ianyfan We need to look at this.

mithunpaul08 commented 1 year ago

found one more: 'the new government often imposes a series of repressive measures, such as the arrest of or the confiscation of property'