Giter Club home page Giter Club logo

Comments (4)

arne-cl avatar arne-cl commented on September 25, 2024

Problem group2tree expects assert len(children['nucleus']) == 1, but we have:

>>> children
defaultdict(<type 'list'>, {'satellite': ['99'], 'nucleus': ['95', '97']})

from rst-converter-service.

arne-cl avatar arne-cl commented on September 25, 2024

minimal input:

Szeryng subsequently focused on teaching before resuming his concert career in 1954.

The "Le Duc" was the instrument on which he performed and recorded mostly, while the latter ("King David" Strad) was donated to the State of Israel.

feng-hirst-2014 output:

ParseTree('Elaboration[N][S]', [ParseTree('Temporal[N][S]', ['Szeryng subsequently focused on teaching', 'before resuming his concert career in 1954 .']), ParseTree('Elaboration[N][S]', ['The " Le Duc " was the instrument', ParseTree('Temporal[N][N]', ['on which he performed and recorded mostly ,', ParseTree('same-unit[N][N]', [ParseTree('same-unit[N][N]', [ParseTree('Elaboration[N][S]', ['while the latter', '( " King David "']), 'Strad )']), 'was donated to the State of Israel .'])])])])

feng-hirst-2014-result-minimal.rs3.txt
feng-hirst-converter-fail

from rst-converter-service.

arne-cl avatar arne-cl commented on September 25, 2024

If we convert the original feng-hirst-2014 parser output to a tree,

$ curl -X POST -F "[email protected]" http://localhost:5000/convert/hilda/tree.prettyprint
                                                               Elaboration
                     _______________________________________________|________________
                    |                                                                S
                    |                                                                |
                    |                                                           Elaboration
                    |                              __________________________________|____________________________
                    |                             |                                                               S
                    |                             |                                                               |
                    |                             |                                                            Temporal
                    |                             |                  _____________________________________________|_____________
                    |                             |                 |                                                           N
                    |                             |                 |                                                           |
                    |                             |                 |                                                       same-unit
                    |                             |                 |                                              _____________|____________________
                    |                             |                 |                                             N                                  |
                    |                             |                 |                                             |                                  |
                    |                             |                 |                                         same-unit                              |
                    |                             |                 |                                _____________|______________________            |
                    N                             |                 |                               N                                    |           |
                    |                             |                 |                               |                                    |           |
                 Temporal                         |                 |                          Elaboration                               |           |
        ____________|____________                 |                 |                 ______________|_____________                       |           |
       N                         S                N                 N                N                            S                      N           N
       |                         |                |                 |                |                            |                      |           |
Szeryng subseque          before resuming  The " Le Duc "      on which he    while the latter             ( " King David "           Strad ) was donated to
ntly focused on             his concert    was the instrume   performed and                                                                    the State of
    teaching              career in 1954 .        nt        recorded mostly ,                                                                     Israel .

we see that it has two Temporal relations with different nuclearity:
The first one is (N: ... focused on teaching, S: before resuming ...).
The second one is (N: on which he performed ... mostly, N: while the latter ... was donated).
The while should not be interpreted in a temporal sense, but that's probably not the issue here.

from rst-converter-service.

arne-cl avatar arne-cl commented on September 25, 2024

The rs3 files has some odd things, like relation names in different casing/spelling in the <relations> section,
while in the section, we only find Temporal (and not temporal)

    <relations>
      <rel name="Manner-Means" type="rst"/>
      <rel name="Mannermeans" type="rst"/>
      ...
      <rel name="Same-Unit" type="multinuc"/>
      <rel name="Same-unit" type="multinuc"/>
      <rel name="Temporal" type="multinuc"/>
      <rel name="same-unit" type="multinuc"/>
      <rel name="same_unit" type="multinuc"/>
      <rel name="temporal" type="rst"/>
    </relations>
...
  <body>
    <segment id="5" parent="3" relname="Temporal">Szeryng subsequently focused on teaching</segment>
    <segment id="7" parent="3" relname="Temporal">before resuming his concert career in 1954 .</segment>
    <segment id="15" parent="13" relname="Temporal">on which he performed and recorded mostly ,</segment>
    <group id="17" type="multinuc" parent="13" relname="Temporal"/>
  </body>

from rst-converter-service.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.