Comments (11)
Hi Benjamin,
thanks for your bug report.
Technically, boilerpipe does not need NekoHTML to work (you could use TagSoup
instead, for example).
Especially since boilerpipe is a dependency of Apache Tika (>= 0.8), which uses
TagSoup, it would not make sense to enforce that dependency to NekoHTML in
boilerpipe.
Still, right now, the boilerpipe jar contains some patched classes from
NekoHTML (HTMLElements and HTMLTagBalancer), which somehow feels wrong.
In the next release of boilerpipe, I will remove these classes and provide a
new jar file called something like "nekohtml-patch-2909310-1.9.14.jar" (2909310
stands for the NekoHTML bug I reported almost a year ago, see
http://sourceforge.net/tracker/?func=detail&aid=2909310&group_id=195122&atid=952
178 ).
Since that NekoHTML has not been fixed upstream for a long time, please also
consider helping me to get this bug fixed in NekoHTML, by commenting at the
link above.
Cheers,
Christian
Original comment by ckkohl79
on 21 Nov 2010 at 11:49
- Changed state: Accepted
- Added labels: OpSys-All, Priority-Low, Type-Enhancement
- Removed labels: Priority-Medium, Type-Defect
from boilerpipe.
Makes sense. Feel free to close this issue then. I commented on the NekoHTML
bug and will try to follow up there.
Original comment by [email protected]
on 21 Nov 2010 at 10:43
from boilerpipe.
i am wanting to use hotsax as the parser and just drop in the
BoilerpipeHTMLContentHandler. making me depend on anything but the core engine
and letting me pick the parser would be nice. so really the engine should be
separated into a core.jar and the demos should be in a demo.jar which depends
on the core jar and whatever parser you are running on boilerpipe-web. the best
way to do this is a multimodule maven project. it would also be nice to then
push the jars out onto maven central. i have experience in all of that (and how
to have it play nicely with eclipse indigo). let me know if you want me to do
this and i will find a free hour (post here as i don't check this account
often.....)
Original comment by [email protected]
on 11 Jan 2012 at 9:55
from boilerpipe.
I don't think this makes sense - a project's Maven dependency file should
contain all of its dependencies. If two dependencies reference the same
dependency, as you fear with Apache Tika, then Maven takes care of it.
Boilerpipe would be perfect for me but trying to get it working has been
painful due to missing dependencies (including nekohtml and xerces) in the
pom.xml.
Boilerpipe should "just work" when you add it as a Maven dependency to your
pom.xml - but currently it doesn't, and I'm going to have to find another
solution :-(
Original comment by ian.clarke
on 25 Mar 2012 at 8:20
from boilerpipe.
Ian,
thanks for your comment.
Please provide a patch that takes care of that. I will be more than happy to
add this feature.
Best,
Christian
Original comment by ckkohl79
on 26 Mar 2012 at 5:20
from boilerpipe.
Will this issue be ever resolved? Getting started with Boilerpipe is a real
pain thanks to this undocumented missing dependencies jazz. Either specify them
or clearly document how people can get started.
Original comment by [email protected]
on 26 Apr 2012 at 10:41
from boilerpipe.
This is seriously broken. One one side you include some classes from the
nekohtml but running a simple test with ArticleExtractor breaks with NoClassDef
from nehkohtml.
On the other when I include nekohtml in dependencies, I get two versions of
classes one from boilerpipe and other from nekohtml.
Better solution would be to make a different package name for you own nekohtml
classes so it won't break other libs that depend on it.
Original comment by [email protected]
on 28 Jun 2012 at 6:46
from boilerpipe.
This is the class not found exception:
Caused by: java.lang.ClassNotFoundException:
org.cyberneko.html.HTMLConfiguration
Original comment by [email protected]
on 28 Jun 2012 at 7:00
from boilerpipe.
Adding the following to the pom of boilerpipe should fix the problem:
<dependency>
<groupId>xerces</groupId>
<artifactId>xerces</artifactId>
<version>2.4.0</version>
</dependency>
<dependency>
<groupId>net.sourceforge.nekohtml</groupId>
<artifactId>nekohtml</artifactId>
<version>1.9.17</version>
</dependency>
Original comment by [email protected]
on 24 Nov 2012 at 2:33
from boilerpipe.
The nekohtml "patched" classes change the nekohtml functionality. If you have
Nekohtml on your classpath and use it at another part of a larger system, it
can break previously working features...
Original comment by [email protected]
on 29 Jan 2013 at 4:14
from boilerpipe.
Guys ..
Its very easy to use boiler pipe in your maven project, just include dependency
like below in your project's pom.xml.
<repository>
<id>boilerpipe-m2-repo</id>
<url>http://boilerpipe.googlecode.com/svn/repo/</url>
</repository>
...
<dependency>
<groupId>de.l3s.boilerpipe</groupId>
<artifactId>boilerpipe</artifactId>
<version>1.2.0</version>
</dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.9.1</version>
</dependency>
<dependency>
<groupId>net.sourceforge.nekohtml</groupId>
<artifactId>nekohtml</artifactId>
<version>1.9.13</version>
</dependency>
Original comment by [email protected]
on 7 Feb 2015 at 1:38
from boilerpipe.
Related Issues (20)
- BoilerplateBlockFilter ignores labelToKeep
- [deleted issue]
- Program does not terminate for badly formatted/syntactically incorrect HTML input
- How to use boilerpipe to get some text with a hyperlink from the web page? HOT 1
- Incomplete extraction of text with special characters
- Server returned HTTP response code: 403 for URL (SOLVED) please use this codeline. HOT 2
- Limit the parsing depth of the html parsing to avoid out of memory situations HOT 1
- Extract article from non-english text HOT 1
- Missing Maven 1.2.0
- Xerces for andorid jar file needed HOT 2
- its not working for a news site HOT 1
- Incomplete extraction of article
- Fail to extract main content on some page, get footnote instead
- IllegalArgumentException for many web pages
- Missing ImageExtractor in downloabale 1.2 jar file
- Performance issues with UnicodeTokenizer
- Boilerpipe is conflicting with CyberNeko library HOT 1
- Unsupported content type: null HOT 1
- Different result when using Web Api and the source api?
- How to debug the result?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boilerpipe.