-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtexttostructure.html
More file actions
371 lines (340 loc) · 23.1 KB
/
Copy pathtexttostructure.html
File metadata and controls
371 lines (340 loc) · 23.1 KB
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>hyperquest – semantic hypergraphs</title>
<link href="https://fonts.googleapis.com/css2?family=Sofia+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:ital,wght@0,400;0,600;1,400&display=swap" rel="stylesheet">
<link rel="icon" type="image/png" href="assets/img/favicon.png">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.5/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-SgOJa3DmI69IUzQ2PVdRZhwQ+dy64/BUtbMJw1MZ8t5HZApcHrRKUc4W0kG879m7" crossorigin="anonymous">
<link rel="stylesheet" href="assets/css/variables.css">
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
<!-- nav -->
<nav class="navbar navbar-expand-lg sticky-top">
<div class="container-fluid px-3 px-xxl-5">
<a class="navbar-brand" href="index.html">
<img src="assets/img/logos/logo_hyperquest_small_nav.svg" alt="Logo" width="auto" height="auto" class="d-inline-block align-text-top">
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item"><a class="nav-link" href="index.html">hyperquest</a></li>
<li class="nav-item"><a class="nav-link" href="background.html">project background</a></li>
<li class="nav-item"><a class="nav-link active" href="texttostructure.html">text to structure</a></li>
</ul>
</div>
</div>
</nav>
<header id="header">
<div class="container mt-5">
<div class="row mb-5">
<div class="col-12 col-lg-7 col-xxl-6 offset-lg-1 text-end text-md-end">
<h1 class="border-bottom scroll-animate">from text to structure</h1>
</div>
</div>
</div>
<div class="container mt-5">
<div class="row justify-content-center">
<div class="col-12 col-md-10 col-lg-8 col-xxl-7 ">
<p>HYPERQUEST is built on Semantic Hypergraphs, our approach to representing natural language as recursive semantic structures. Instead of treating sentences as flat sequences of words, it decomposes them into interconnected concepts, explicitly representing entities, actions, roles, qualifiers, and context.</p>
<p class="mt-3">Because the representation itself captures meaning, only a small set of intuitive patterns is needed to retrieve complex information. HYPERQUEST combines the transparency and explainability of symbolic AI with the contextual understanding of modern deep learning-based NLP.</p>
</div>
</div>
</div>
</header>
<main class="background-logo-middle bg-body-img-small">
<section id="hypergraph-examples" class="mt-5">
<div class="container">
<div class="row mb-5">
<div class="col-10 col-lg-5 offset-lg-0 text-end text-md-end">
<h3 class="border-bottom scroll-animate">semantic hypergraphs</h3>
</div>
</div>
<div class="row justify-content-center mb-5">
<div class="col-12 col-md-10 col-lg-8">
<p>Semantic Hypergraphs generalize traditional knowledge graphs by allowing relationships to connect any number of concepts - and even other relationships. This recursive design naturally represents nested statements, qualifications, and contextual information while remaining understandable to non-specialists.</p>
<p class="mt-3">The result is a semantic representation that is both highly expressive and easy to query, making sophisticated information extraction transparent rather than opaque.</p>
</div>
</div>
<div class="row justify-content-center">
<div class="col-12 col-md-10 col-lg-10">
<!-- Example 1 -->
<div class="hg-example">
<h3 class="hg-example-title">Piano</h3>
<div class="hg-example-body">
<div class="hg-graph-panel"><div class="gn">Piano</div></div>
<div class="hg-notation-mono">
<img src="assets/img/visuals_illustrations/bricks-patterns/piano-brick.svg" width="20%" alt="">
</div>
</div>
</div>
<!-- Example 2 -->
<div class="hg-example">
<h3 class="hg-example-title">Black piano</h3>
<div class="hg-example-body">
<div class="hg-graph-panel">
<div class="g-subbox">
<div class="ge">
<span class="ge-label">black</span>
<div class="ge-line"><div class="ge-shaft"></div><div class="ge-arrow"></div></div>
</div>
<div class="gn">piano</div>
</div>
</div>
<div class="hg-notation-mono">
<img src="assets/img/visuals_illustrations/bricks-patterns/black-piano-brick.svg" width="30%" alt="">
</div>
</div>
</div>
<!-- Toggle -->
<button class="hg-toggle-btn" id="hg-toggle" aria-expanded="false">
<span class="hg-toggle-icon">+</span>
<span class="hg-toggle-label">6 more examples</span>
</button>
<!-- Hidden examples -->
<div class="hg-more-examples" id="hg-more">
<!-- Example 3 -->
<div class="hg-example" style="padding-top:40px;">
<h3 class="hg-example-title">Maria's piano.</h3>
<div class="hg-example-body">
<div class="hg-graph-panel">
<div class="gn">Maria</div>
<div class="ge">
<span class="ge-label">'s</span>
<div class="ge-line"><div class="ge-shaft"></div><div class="ge-arrow"></div></div>
</div>
<div class="gn">piano</div>
</div>
<div class="hg-notation-mono">
<img src="assets/img/visuals_illustrations/bricks-patterns/mariaspiano-brick.svg" width="30%" alt="">
</div>
</div>
</div>
<!-- Example 4 -->
<div class="hg-example">
<h3 class="hg-example-title">Maria's black piano.</h3>
<div class="hg-example-body">
<div class="hg-graph-panel" style="flex-wrap:wrap;">
<div class="gn">Maria</div>
<div class="ge">
<span class="ge-label">'s</span>
<div class="ge-line"><div class="ge-shaft"></div><div class="ge-arrow"></div></div>
</div>
<div class="g-subbox" style="background:rgba(210,228,240,0.55)">
<div class="ge">
<span class="ge-label">black</span>
<div class="ge-line"><div class="ge-shaft short"></div><div class="ge-arrow"></div></div>
</div>
<div class="gn">piano</div>
</div>
</div>
<div class="hg-notation-mono">
<img src="assets/img/visuals_illustrations/bricks-patterns/marias-black-piano-brick.svg" width="60%" alt="">
</div>
</div>
</div>
<!-- Example 5 -->
<div class="hg-example">
<h3 class="hg-example-title">Maria plays piano.</h3>
<div class="hg-example-body">
<div class="hg-graph-panel" style="align-items:flex-start; padding:28px 20px;">
<div style="display:flex;align-items:center;gap:0;">
<div style="background:rgba(240,200,170,0.35);border-radius:8px;padding:14px 16px;">
<div style="display:flex;align-items:flex-start;gap:0;">
<div class="gn">Maria</div>
<div class="ge">
<span class="ge-label">plays</span>
<div class="ge-line"><div class="ge-shaft short"></div><div class="ge-arrow"></div></div>
</div>
<div style="display:flex;flex-direction:column;align-items:center;">
<div class="gn">piano</div>
</div>
</div>
</div>
</div>
</div>
<div class="hg-notation-mono">
<img src="assets/img/visuals_illustrations/bricks-patterns/maria-plays-piano.svg" width="30%" alt="">
</div>
</div>
</div>
<!-- Example 6 -->
<div class="hg-example">
<h3 class="hg-example-title">Maria plays piano after school.</h3>
<div class="hg-example-body">
<div class="hg-graph-panel" style="align-items:flex-start; padding:28px 20px;">
<div style="display:flex;align-items:center;gap:0;">
<div style="background:rgba(240,200,170,0.35);border-radius:8px;padding:14px 16px;">
<div style="display:flex;align-items:flex-start;gap:0;">
<div class="gn">Maria</div>
<div class="ge">
<span class="ge-label">plays</span>
<div class="ge-line"><div class="ge-shaft short"></div><div class="ge-arrow"></div></div>
</div>
<div style="display:flex;flex-direction:column;align-items:center;">
<div class="gn">piano</div>
<div class="ge-vert" style="margin-top:4px;">
<div class="ge-shaft-v"></div>
<div class="ge-arrow-v"></div>
<span class="ge-label" style="color:#08604f;font-size:0.8rem;margin-top:2px;">after</span>
</div>
<div class="gn" style="margin-top:4px;">school</div>
</div>
</div>
</div>
</div>
</div>
<div class="hg-notation-mono">
<img src="assets/img/visuals_illustrations/bricks-patterns/maria-plays-piano-after-school.svg" width="70%" alt="">
</div>
</div>
</div>
<!-- Example 7 -->
<div class="hg-example">
<h3 class="hg-example-title">Pedro says that Maria plays piano after school.</h3>
<div class="hg-example-body">
<div class="hg-graph-panel" style="align-items:flex-start; padding:28px 20px;">
<div style="display:flex;align-items:center;gap:0;">
<div class="gn">Pedro</div>
<div class="ge">
<span class="ge-label orange">says that</span>
<div class="ge-line"><div class="ge-shaft orange" style="width:46px;"></div><div class="ge-arrow orange"></div></div>
</div>
<div style="background:rgba(240,200,170,0.35);border-radius:8px;padding:14px 16px;">
<div style="display:flex;align-items:flex-start;gap:0;">
<div class="gn">Maria</div>
<div class="ge">
<span class="ge-label">plays</span>
<div class="ge-line"><div class="ge-shaft short"></div><div class="ge-arrow"></div></div>
</div>
<div style="display:flex;flex-direction:column;align-items:center;">
<div class="gn">piano</div>
<div class="ge-vert" style="margin-top:4px;">
<div class="ge-shaft-v"></div>
<div class="ge-arrow-v"></div>
<span class="ge-label" style="color:#08604f;font-size:0.8rem;margin-top:2px;">after</span>
</div>
<div class="gn" style="margin-top:4px;">school</div>
</div>
</div>
</div>
</div>
</div>
<div class="hg-notation-mono">
<img src="assets/img/visuals_illustrations/bricks-patterns/marias-piano-after-school-brick.svg" width="100%" alt="">
</div>
</div>
</div>
<!-- Example 8 -->
<div class="hg-example">
<h3 class="hg-example-title">Maria plays piano and Pedro watches movies.</h3>
<div class="hg-example-body">
<div class="hg-graph-panel" style="align-items:center; padding:28px 20px; gap: 16px;">
<div style="display:flex;align-items:center;gap:0;">
<div style="background:rgba(240,200,170,0.35);border-radius:8px;padding:14px 16px;">
<div style="display:flex;align-items:center;gap:0;">
<div class="gn">Maria</div>
<div class="ge">
<span class="ge-label">plays</span>
<div class="ge-line"><div class="ge-shaft short"></div><div class="ge-arrow"></div></div>
</div>
<div class="gn">piano</div>
</div>
</div>
</div>
<div class="ge" style="flex-direction:row;align-items:center;">
<div style="height:2px;width:24px;background:#1a1a2e;"></div>
<span class="ge-label" style="font-style:italic;color:#1a1a2e;margin:0 4px;">and</span>
<div style="height:2px;width:24px;background:#1a1a2e;"></div>
</div>
<div style="display:flex;align-items:center;gap:0;">
<div style="background:rgba(240,200,170,0.35);border-radius:8px;padding:14px 16px;">
<div style="display:flex;align-items:center;gap:0;">
<div class="gn">Pedro</div>
<div class="ge">
<span class="ge-label">watches</span>
<div class="ge-line"><div class="ge-shaft short"></div><div class="ge-arrow"></div></div>
</div>
<div class="gn">movies</div>
</div>
</div>
</div>
</div>
<div class="hg-notation-mono" style="font-style:italic;color:#555;font-size:0.9rem;display:flex;align-items:center;justify-content:center;">
<img src="assets/img/visuals_illustrations/bricks-patterns/maria-piano-predro-movies.svg" width="100%" alt="">
</div>
</div>
</div>
</div>
<!-- end hidden examples -->
</div>
</div>
</div>
</section>
<!-- CTA -->
<section id="CTA">
<div class="container-fluid">
<div class="row justify-content-center text-center">
<div class="col-8 scroll-animate">
<h4 class="mt-4 mb-4">do you want to know more?</h4>
<p>If you have any questions about the project or would like to get in touch with us, we would be pleased to hear from you.</p>
<a href="mailto:cams@ehess.fr" class="btn-small text-big mt-5" role="button">
<span class="icon icon-contact" aria-hidden="true"></span>
write us
</a>
</div>
</div>
</div>
</section>
</main>
<footer class="mt-5">
<div class="container-fluid px-3 px-xxl-5">
<div class="row justify-content-between align-items-end">
<div class="col-12 col-md-3 col-lg-3 text-end mb-5">
<h3 class="border-bottom scroll-animate mb-5">hyperquest</h3>
<p>CAMS - UMR 8557 CNRS-EHESS</p>
<p>54 boulevard Raspail</p>
<p>75006 Paris</p>
<p>phone: (33-1) 49 54 20 42</p>
<p class="mb-4">(33-1) 49 54 25 53</p>
<a href="mailto:cams@ehess.fr">cams@ehess.fr</a>
<a href="https://cams.ehess.fr/">https://cams.ehess.fr/</a>
</div>
<div class="col-12 col-md-12 col-lg-4">
<div class="footer-right d-flex gap-4 justify-content-end text-end">
<a href="legalnotice.html">Credits & legal notice</a>
</div>
</div>
</div>
</div>
</footer>
<script>
const toggleBtn = document.getElementById('hg-toggle');
const moreBox = document.getElementById('hg-more');
const toggleLabel = toggleBtn.querySelector('.hg-toggle-label');
toggleBtn.addEventListener('click', () => {
const open = moreBox.classList.toggle('open');
toggleBtn.classList.toggle('open', open);
toggleBtn.setAttribute('aria-expanded', open);
toggleLabel.textContent = open ? 'show less' : '6 more examples';
});
</script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.5/dist/js/bootstrap.bundle.min.js" integrity="sha384-k6d4wzSIapyDyv1kpU366/PK5hCdSbCRGRCMv+eplOQJWyd1fbcAu9OCUj5zNLiq" crossorigin="anonymous"></script>
<script>
document.addEventListener("DOMContentLoaded", function () {
const targets = document.querySelectorAll('.scroll-animate');
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) { entry.target.classList.add('animate'); }
else { entry.target.classList.remove('animate'); }
});
}, { threshold: 0.2 });
targets.forEach(target => observer.observe(target));
});
</script>
</body>
</html>