Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thammegowda/autoextractor
A toolkit for clustering web pages based on various similarity measures.
https://github.com/thammegowda/autoextractor
Last synced: about 1 month ago
JSON representation
A toolkit for clustering web pages based on various similarity measures.
- Host: GitHub
- URL: https://github.com/thammegowda/autoextractor
- Owner: thammegowda
- License: apache-2.0
- Created: 2015-12-25T05:38:28.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-05-20T20:49:09.000Z (over 2 years ago)
- Last Synced: 2024-04-19T02:36:42.114Z (7 months ago)
- Language: Java
- Homepage:
- Size: 82 KB
- Stars: 4
- Watchers: 2
- Forks: 13
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Moved to https://github.com/uscdataScience/autoextractor
# Auto Extractor
An intelligent extractor library which learns the structures of the input web pages and then figures out a strategy for scraping the structured contentNOTE : The project is under active development, as a result the README is out of sync with the codebase.
TODO: update this file with the description of all new features.
# Example Usage:
## 1. Structural Similarity Between HTML/XML documents
$ mvn clean compile package
$ java -cp target/autoextractor-0.1-SNAPSHOT-jar-with-dependencies.jar edu.usc.irds.autoext.tree.ZSTEDComputer \
-dir src/test/resources/html/simple/#Index File Path
0 /home/tg/work/projects/oss/autoextractor/src/test/resources/html/simple/3.html
1 /home/tg/work/projects/oss/autoextractor/src/test/resources/html/simple/2.html
2 /home/tg/work/projects/oss/autoextractor/src/test/resources/html/simple/1.html#Similarity Matrix
0.000000 13.000000 10.000000
13.000000 0.000000 3.000000
10.000000 3.000000 0.000000## 2. Clustering based on style and structure
$ mvn clean package
$ java -cp target/autoextractor-0.1-SNAPSHOT-jar-with-dependencies.jar edu.usc.irds.autoext.cluster.FileClusterer
Option "-list" is required
-list FILE : path to a file containing paths to html files that requires
clustering
-workdir FILE : Path to directory to create intermediate files and reports# Creating input list of htmls
$ find src/test/resources/html/simple/ -type f > list.txt# Cluster
$ java -cp target/autoextractor-0.1-SNAPSHOT-jar-with-dependencies.jar edu.usc.irds.autoext.cluster.FileClusterer \
-list list.txt -workdir out# Report
$ cat out/report.txt# Similarity Matrix
$ cat out/gross-sim.csv# Clusters
$ cat out/clusters.txt
##Total Clusters:2
#Cluster:0
src/test/resources/html/simple/3.html
#Cluster:1
src/test/resources/html/simple/2.html
src/test/resources/html/simple/1.html
# Developers:
* [Thamme Gowda, USC](mailto:[email protected])
* [Chris Mattmann, USC & NASA JPL]()# References :
+ K. Zhang and D. Shasha. 1989. "Simple fast algorithms for the editing distance between trees and related problems". SIAM J. Comput. 18, 6 (December 1989), 1245-1262.
+ Jarvis, R.A.; Patrick, Edward A., "Clustering Using a Similarity Measure Based on Shared Near Neighbors," in Computers, IEEE Transactions on , vol.C-22, no.11, pp.1025-1034, Nov. 1973