GithubHelp home page GithubHelp logo

arne-cl / rstviewer Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 372 KB

DEPRECATED, please use my fork of rstWeb instead.

License: Other

Makefile 0.35% CSS 8.64% JavaScript 35.07% Python 54.77% HTML 0.42% Dockerfile 0.74%
rst rhetorical-structure-theory visualization rs3

rstviewer's People

Contributors

arne-cl avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

randomunrandom

rstviewer's Issues

reading minimal rs3 file causes "IndexError: list index out of range"

This file can't be parsed:

<rst>
  <header>
    <relations>
      <rel name="Contrast" type="rst"/>
    </relations>
  </header>
  <body>
    <segment id="3" parent="5" relname="Contrast">Although she hated them ,</segment>
    <segment id="5" parent="1" relname="span">Alice accepted the offer .</segment>
    <group id="1" type="span"/>
  </body>
</rst>
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/cherrypy/_cprequest.py", line 631, in respond
    self._do_respond(path_info)
  File "/usr/local/lib/python2.7/dist-packages/cherrypy/_cprequest.py", line 690, in _do_respond
    response.body = self.handler()
  File "/usr/local/lib/python2.7/dist-packages/cherrypy/lib/encoding.py", line 221, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/cherrypy/_cpdispatch.py", line 60, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "start_local_docker.py", line 53, in structure
    return structure_main("local","3",'local',**kwargs)
  File "/opt/rstweb/structure.py", line 123, in structure_main
    def_multirel = get_def_rel("multinuc",current_doc, current_project)
  File "/opt/rstweb/modules/rstweb_sql.py", line 233, in get_def_rel
    return rel_row[0][0]
IndexError: list index out of range

... but this file can:

<rst>
  <header>
    <relations>
      <rel name="concession" type="rst" />
      <rel name="sequence" type="multinuc" />
    </relations>
  </header>
  <body>
    <segment id="4" parent="5" relname="concession">Although they didn't like it,</segment>
    <segment id="5" parent="12" relname="span">they accepted the offer.</segment>
<group id="12" type="span" />
  </body>
</rst>

Both files can be parsed by RSTTool.

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.