Skip to content

Repository files navigation

html2vec

Algorithm that converts an HTML to a vectorized object suitable for neural networks, including sequential models.

wallpaperarchitecture

Instructions

Installing dependencies.

virtualenv -p python3 .env
source .env/bin/activate
pip install -r requirements.txt
python -m spacy download en_core_web_md

Vectorizing HTML from the CLI

python3 html2vec.py "https://hippie-inheels.com/3-day-new-orleans-itinerary/"

Vectorizing HTML inside a Python script.

fromhtml2vecimportHtml2Vecmodel: Html2Vec=Html2Vec()
model.relatives=5fornodeinmodel.fit(html):
print(node)
print(node.get_vector())

About

Algorithm that converts an HTML to a vectorized object suitable for neural networks.

Topics

Resources

Stars

14 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages