Code Monkey home page Code Monkey logo

planetext's People

Contributors

andreg-p avatar

Watchers

 avatar  avatar  avatar

planetext's Issues

Make it parallel

The program is pretty slow for huge databases. Because of the GIL in ruby, it is not so easy to parallelize the process. On the other hand, if we use JRuby (which can be used in parallel easily) has a very poor and extremely slow implementation of nokogiri (which is necessary to parse the HTML).

So either find a way around GIL in ruby or fix the performance issues in nokogiri in JRuby or found a new workaround.

Rather Urgent: Security Issues

Goran-san>
I've found that there appears a warning about a possible security issue on the top of this repository. Could you please have a look at it and resolve it?

Best,
Akiko

Annotations should not contain plain text for some objects

Per default, planetext put the plain text of annotations to the .ann files. For example, if we define MathML as objects for replacements, the MathML in the .ann files only consists of the UTF-8 characters in the MathML data, e.g.

#3	AnnotatorNotes T3	α 𝛼 italic-alpha \alpha

rather than the MathML data itself.

I currently fixed this issue by manually adding an if-else-case in

planetext/lib/extract.rb

Lines 240 to 244 in d1247bb

if ["math", "abbr", "cite", "ul"].include? name
text = node.to_s.gsub(/\n/, ' ')
else
text = node.text.gsub(/\n/, ' ')
end

It would be better if we can handle this with an extra option in the config yaml. For example, :objectescapexml: or something like that.

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.