Feature Extraction
Transformers
Safetensors
modernbert
html
document-embedding
text-embeddings-inference
Instructions to use Seznam/html-lm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Seznam/html-lm with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="Seznam/html-lm")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("Seznam/html-lm") model = AutoModel.from_pretrained("Seznam/html-lm", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 2,190 Bytes
f2a3229 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Nested HTML Example</title>
</head>
<body>
<nav class="main-nav">
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Services</a>
<a href="#">Contact</a>
</nav>
<div class="page">
<header class="header">
<h1>Simple Page</h1>
</header>
<div class="content-wrapper">
<main class="main-content">
<div class="section">
<h2>First Section</h2>
<p>Some example content inside the page.</p>
<div class="subtree">
<div>
<div class="inner-block">
<div>
<p>This text is inside a deeper nested div.</p>
</div>
</div>
</div>
</div>
</div>
<div class="section-alt">
<h2>Second Section</h2>
<div class="level-one">
<div class="level-two">
<div class="level-three">
<div class="level-four">
<span>Text at a deeper level</span>
</div>
</div>
</div>
</div>
<nav class="secondary-nav">
<a href="#">One</a>
<a href="#">Two</a>
<a href="#">Three</a>
</nav>
</div>
<div>
<div class="card">
<h3>Nested Card</h3>
<div>
<div class="details">
<p>Another nested text node.</p>
<div>
<div>
<span>Even deeper text</span>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
</div>
<footer class="footer">
<div class="footer-inner">
<p>Footer information</p>
</div>
</footer>
</div>
<div class="bottom-area">
<div>
<div>
<div>
<p>This is text near the bottom of the DOM tree.</p>
</div>
</div>
</div>
</div>
<p>Text at the bottom node</p>
</body>
</html> |