kmcs-nii / planetext Goto Github PK
View Code? Open in Web Editor NEWSlice XHTML/XML into plain text for NLP
License: MIT License
Slice XHTML/XML into plain text for NLP
License: MIT License
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.
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
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
Lines 240 to 244 in d1247bb
It would be better if we can handle this with an extra option in the config yaml. For example, :objectescapexml:
or something like that.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.