-
Notifications
You must be signed in to change notification settings - Fork 722
/
Copy pathlanding.html
executable file
·633 lines (559 loc) · 26.9 KB
/
landing.html
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
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
---
layout: page
header: false
full_width: true
article_header:
type: overlay
align: center
height: 80vh
---
<!-- Do not use auto intent in this file. -->
<div class="layout--landing">
<div class="heros">
{%- for _section in page.data.sections -%}
{%- include snippets/get-nav-url.html path=_section.background_image.src -%}
{%- assign _url = __return -%}
{%- if _section.theme == 'light' -%}
<section class="hero {{ _section.topclass }} section-row hero--center hero--light" id="hero-{{ forloop.index }}" {%- elsif _section.theme == 'dark' -%}
<section class="hero {{ _section.topclass }} section-row hero--center hero--dark" id="hero-{{ forloop.index }}" {%- else -%} <section
class="hero section-row hero--center" id="hero-{{ forloop.index }}" {%- endif -%} {%- if _section.background_color -%}
style="background-image: url({{ _url }}); background-color: {{ _section.background_color }};">
{%- else -%}
style="background-image: url({{ _url }});">
{%- endif -%}
<div class="">
{%- if _section.top -%}
<div class="top_section {{ _section.topclass }}">
<h3 class="blue h3_title {{ _section.classtitle }}">{{ _section.title }}</h3>
{%- if _section.bigimage-%}
<figure class="big_img"><img src="{{ _section.bigimage }}" alt=""></figure>
{%- endif -%}
{%- if _section.excerpt-%}
<p class="h3_descr">{{ _section.excerpt }}</p>
{%- endif -%}
{%- if _section.actions -%}
<ul class="menu {{ _section.classmenu }}">
{%- for _action in _section.actions -%}
{%- include snippets/get-nav-url.html path=_action.url -%}
{%- assign _url = __return -%}
{%- assign _type = _action.type | default: 'outline-info' -%}
<li><a class="button button--{{ _type }} button--pill button--lg" href="{{ _url }}">{{ _action.text }}</a>
</li>
{%- endfor -%}
</ul>
{%- endif -%}
</div>
{%- endif -%}
{%- if _section.threeblocks -%}
{%- assign _size = _section.threeblocks | size -%}
<div class="grid--container">
<div class="grid grid--p-3">
{%- for child in _section.threeblocks -%}
{%- if _size >= 2 -%}
{%- assign _cell_sm_col = 12 -%}
{%- else -%}
{%- assign _cell_sm_col = 12 | divided_by: _size -%}
{%- endif -%}
{%- if _size >= 2 -%}
{%- assign _cell_md_col = 4 -%}
{%- else -%}
{%- assign _cell_md_col = 12 | divided_by: _size -%}
{%- endif -%}
{%- if _size >= 4 -%}
{%- assign _cell_lg_col = 3 -%}
{%- else -%}
{%- assign _cell_lg_col = 12 | divided_by: _size -%}
{%- endif -%}
{%- if _size >= 6 -%}
{%- assign _cell_lg_col = 2 -%}
{%- else -%}
{%- assign _cell_lg_col = 12 | divided_by: _size -%}
{%- endif -%}
<div class="cell cell--12 cell--md-{{ _cell_md_col }} cell--lg-{{ _cell_lg_col }} cell--sm-{{ _cell_sm_col }}">
<div class="feature-item topthree {{ _section.featureitem }} ">
{%- if child.image and child.image.src -%}
{%- if child.image.url -%}
{%- include snippets/get-nav-url.html path=child.image.url -%}
{%- assign _item_image_url = __return -%}
{%- else -%}
{%- assign _item_image_url = nil -%}
{%- endif -%}
{%- include snippets/get-nav-url.html path=child.image.src -%}
{%- assign _item_image_src = __return -%}
{%- if child.image.is_row -%}
{%- endif -%}
<figure class="mx-auto" style="{{ child.image.style }}">
<img src="{{ _item_image_src }}" />
</figure>
{%- if child.image.is_row -%}
{%- endif -%}
{%- endif -%}
<h4>{{ child.title }}</h4>
{%- if child.excerpt-%}
<p>{{ child.excerpt }}</p>
{%- endif -%}
{%- if child.actions -%}
<ul class="menu">
{%- for _action in child.actions -%}
{%- include snippets/get-nav-url.html path=_action.url -%}
{%- assign _url = __return -%}
{%- assign _type = _action.type | default: 'outline-info' -%}
<li><a class="button button--{{ _type }} button--pill button--lg"
href="{{ _url }}">{{ _action.text }}</a></li>
{%- endfor -%}
</ul>
{%- endif -%}
</div>
{%- if child.content-%}
<p>{{ child.content }}</p>
{%- endif -%}
</div>
{%- endfor-%}
</div>
</div>
{%- endif -%}
{%- if _section.image.full_width == true -%}
</div> {% comment %} end hero__content {% endcomment %}
{%- endif -%}
{%- if _section.image and _section.image.src -%}
{%- if _section.image.url -%}
{%- include snippets/get-nav-url.html path=_section.image.url -%}
{%- assign _section_image_url = __return -%}
{%- else -%}
{%- assign _section_image_url = nil -%}
{%- endif -%}
{%- include snippets/get-nav-url.html path=_section.image.src -%}
{%- assign _section_image_src = __return -%}
{%- if _section.image.is_row -%}
<div class="mb-5">
{%- endif -%}
<div class="mx-auto" style="{{ _section.image.style }}">
{%- if _section_image_url -%}
<a href="{{ _section_image_url }}">
{%- endif -%}
{%- if _section.image.full_width == true -%}
<img class="hero__cover hero__cover--full-width" src="{{ _section_image_src }}" />
{%- else -%}
<img class="hero__cover" src="{{ _section_image_src }}" />
{%- endif -%}
{%- if _section_image_url -%}
</a>
{%- endif -%}
</div>
{%- if _section.image.is_row -%}
</div>
{%- endif -%}
{%- endif -%}
{%- if _section.install -%}
<div class="quick_easy">
<div class="grid--container">
<div class="grid">
<div class="cell d_flex cell--12 cell--lg-5 cell--md-5 cell--sm-12 quick_easy_inner">
<h3 class="grey h3_title">{{ _section.title }}</h3>
{%- if _section.excerpt-%}
<div class="descr_quick">{{ _section.excerpt }}</div>
{%- endif -%}
{%- if _section.actions -%}
<ul class="menu">
{%- for _action in _section.actions -%}
{%- include snippets/get-nav-url.html path=_action.url -%}
{%- assign _url = __return -%}
{%- assign _type = _action.type | default: 'outline-info' -%}
<li><a class="button button--{{ _type }} button--pill button--lg" href="{{ _url }}">{{ _action.text }}</a>
</li>
{%- endfor -%}
</ul>
{%- endif -%}
</div>
<div class="cell cell--12 cell--lg-7 cell--md-7 cell--sm-12">
<div class="highlight-box">
{% highlight bash %}
# Using PyPI
$ pip install spark-nlp==5.5.3
# Using Anaconda/Conda
$ conda install -c johnsnowlabs spark-nlp
{% endhighlight %}
</div>
</div>
</div>
</div>
</div>
{%- endif -%}
{%- if _section.transformers -%}
<div class="transformer-section">
<div class="grid--container">
<div class="grid">
<div class="cell cell--12 cell--lg-12">
<div class="transformer-top">
<h2 class="h2_title grey">Transformers at Scale</h2>
<div class="transformer-descr">
Unlock the power of <b>Large Language Models</b> with <b>Spark NLP 🚀</b>, the only open-source library that delivers cutting-edge transformers for <b>production</b> such as
<b>BERT</b>, <b>CamemBERT</b>, <b>ALBERT</b>, <b>ELECTRA</b>, <b>XLNet</b>, <b>DistilBERT</b>, <b>RoBERTa</b>, <b>DeBERTa</b>,
<b>XLM-RoBERTa</b>, <b>Longformer</b>, <b>ELMO</b>, <b>Universal Sentence Encoder</b>, <b>Facebook BART</b>, <b>Instructor Embeddings</b>, <b>E5 Embeddings</b>, <b>MPNet Embeddings</b>, <b>Google T5</b>, <b>MarianMT</b>, <b>OpenAI GPT2</b>,
<b>Google ViT</b>, <b>ASR Wav2Vec2</b>, <b>OpenAI Whisper</b> and many more not only to <b>Python</b>, and <b>R</b> but also to <b>JVM</b> ecosystem (<b>Java</b> and <b>Scala</b>) at <b>scale</b> by extending <b>Apache Spark</b> natively
</div>
</div>
</div>
</div>
</div>
</div>
{%- endif -%}
{%- if _section.landingmodels -%}
<div class="quick_easy landing_models">
<div class="grid--container">
<div class="grid">
<div class="cell d_flex cell--12">
<h3 class="h3_title blue">{{ _section.title }}</h3>
{%- if _section.excerpt-%}
<div class="descr_quick">{{ _section.excerpt }}</div>
{%- endif -%}
{%- if _section.actions -%}
<ul class="menu">
{%- for _action in _section.actions -%}
{%- include snippets/get-nav-url.html path=_action.url -%}
{%- assign _url = __return -%}
{%- assign _type = _action.type | default: 'outline-info' -%}
<li><a class="button button--{{ _type }} button--pill button--lg" href="{{ _url }}">{{ _action.text }}</a>
</li>
{%- endfor -%}
</ul>
{%- endif -%}
</div>
</div>
</div>
</div>
{%- endif -%}
{%- if _section.features -%}
<div class="features-section">
<div class="grid--container">
<div class="grid">
<div class="cell cell--12 cell--lg-12">
<div class="features-inner">
<h4 class="blue h4_title">NLP Features</h4>
<div class="features-ul">
<ul class="list1">
<li>Tokenization</li>
<li>Word Segmentation</li>
<li>Stop Words Removal</li>
<li>Document & Text Splitter</li>
<li>Normalizer</li>
<li>Stemmer</li>
<li>Lemmatizer</li>
<li>NGrams</li>
<li>Regex Matching</li>
<li>Text Matching</li>
<li>Chunking</li>
<li>Date Matcher</li>
<li><strong>Part-of-speech</strong> tagging</li>
<li>Sentence Detector (DL models)</li>
<li><strong>Dependency</strong> parsing</li>
<li><strong>SpanBERT</strong> Coreference Resolution</li>
<li><strong>Sentiment</strong> Detection (ML models)</li>
<li><strong>Spell</strong> Checker (ML & DL models)</li>
<li>Doc2Vec Embeddings (<strong>Word2Vec</strong>)</li>
<li>Word2Vec Embeddings (<strong>Word2Vec</strong>)</li>
<li>Word Embeddings (<strong>GloVe</strong> & <strong>Word2Vec</strong>)</li>
<li><strong>BERT</strong> Embeddings</li>
<li><strong>DistilBERT</strong> Embeddings</li>
<li><strong>CamemBERT</strong> Embeddings</li>
<li><strong>RoBERTa</strong> Embeddings</li>
<li><strong>DeBERTa</strong> Embeddings</li>
<li><strong>XLM-RoBERTa</strong> Embeddings</li>
<li><strong>Longformer</strong> Embeddings</li>
<li><strong>ALBERT</strong> Embeddings</li>
<li><strong>XLNet</strong> Embeddings</li>
<li><strong>ELMO</strong> Embeddings</li>
<li><strong>Universal Sentence</strong> Encoder</li>
<li><strong>Sentence</strong> Embeddings</li>
<li><strong>Chunk</strong> Embeddings</li>
<li><strong>Instructor</strong> Embeddings</li>
<li><strong>E5</strong> Embeddings</li>
<li><strong>MPNet</strong> Embeddings</li>
<li><strong>OpenAI</strong> Embeddings</li>
</ul>
<ul class="list1">
<li>Table Question Answering <strong>(TAPAS)</strong></li>
<li>Unsupervised <strong>keywords extraction</strong></li>
<li>Language <strong>Detection</strong> & <strong>Identification</strong> (up to 375 languages)</li>
<li>Multi-class / Multi-label Text <strong>Classification</strong> (DL model)</li>
<li>Text <strong>Classification</strong> (DL model)</li>
<li>Multi-class <strong>Sentiment Analysis</strong> (DL model)</li>
<li>BERT for <strong>Token & Sequence Classification</strong></li>
<li>DistilBERT for <strong>Token & Sequence Classification</strong></li>
<li>CamemBERT for <strong>Token Classification</strong></li>
<li>ALBERT for <strong>Token & Sequence Classification</strong></li>
<li>RoBERTa for <strong>Token & Sequence Classification</strong></li>
<li>DeBERTa for <strong>Token & Sequence Classification</strong></li>
<li>XLM-RoBERTa for <strong>Token & Sequence Classification</strong></li>
<li>XLNet for <strong>Token & Sequence Classification</strong></li>
<li>Longformer for <strong>Token & Sequence Classification</strong></li>
<li>Transformer-based <strong>Question Answering</strong></li>
<li><strong>Named entity</strong> recognition (DL model)</li>
<li>Facebook BART <strong>NLG, Translation, and Comprehension</strong></li>
<li>Zero-Shot <strong>NER & Text</strong> Classification (ZSL)</li>
<li>Neural <strong>Machine Translation</strong> (MarianMT)</li>
<li>Many-to-Many <strong>multilingual translation</strong> (Facebook M2M100)</li>
<li><strong>Text-To-Text</strong> Transfer Transformer <strong>(Google T5)</strong></li>
<li><strong>Generative Pre-trained</strong> Transformer 2 <strong>(OpenAI GPT-2)</strong></li>
<li><strong>Chat and Conversational</strong> LLMs <strong>(Facebook Llama-22)</strong></li>
<li>Vision Transformer (Google ViT) <strong>Image Classification</strong></li>
<li>Microsoft Swin Transformer <strong>Image Classification</strong></li>
<li>Facebook ConvNext <strong>Image Classification</strong></li>
<li>Image to Text <strong>Image Captioning</strong></li>
<li>Zero-Shot <strong>Image Classification (OpenAI CLIP)</strong></li>
<li>Automatic Speech Recognition <strong>(OpenAI Whisper, Wav2Vec2 & HuBERT)</strong></li>
<li>Easy <strong>ONNX</strong> and <strong>TensorFlow</strong> integrations</li>
<li><strong>GPU</strong> Support</li>
<li>Full integration with <strong>Spark ML</strong> functions</li>
<li><strong>24000+</strong> pre-trained <strong>models </strong> in <strong>200+ languages! </strong>
<li><strong>6000+</strong> pre-trained <strong>pipelines </strong> in <strong>200+ languages! </strong>
</ul>
</div>
{% highlight python %}
from sparknlp.pretrained import PretrainedPipeline
import sparknlp
# Start Spark Session with Spark NLP 🚀
spark = sparknlp.start()
# Download a pre-trained pipeline
pipeline = PretrainedPipeline('explain_document_dl', lang='en')
# Annotate your testing dataset
text = "The Mona Lisa is a 16th century oil painting created by Leonardo. It's held at the Louvre in Paris."
result = pipeline.annotate(text)
# What's in the pipeline
print(list(result.keys()))
# Output: ['entities', 'stem', 'checked', 'lemma', 'document', 'pos', 'token', 'ner', 'embeddings', 'sentence']
# Check the results
print(result['entities'])
# Output: ['Mona Lisa', 'Leonardo', 'Louvre', 'Paris']
{% endhighlight %}
</div>
</div>
</div>
</div>
</div>
{%- endif -%}
{%- if _section.benchmark -%}
<div class="benchmark-section">
<div class="grid--container">
<div class="grid">
<div class="cell cell--12 cell--lg-5">
<div class="benchmark-top">
<h2 class="h2_title grey">Benchmark</h2>
<div class="benchmark-descr">Spark NLP 🚀 4.x obtained the best performing academic peer-reviewed results</div>
</div>
<div class="benchmark-inner">
<h4 class="h4_title blue">Training NER</h4>
<ul class="list1">
<li>State-of-the-art <strong>Deep Learning</strong> algorithms</li>
<li>Achieve <strong>high accuracy</strong> within a few minutes</li>
<li>Achieve high accuracy with a <strong>few lines of codes</strong></li>
<li>Blazing fast training</li>
<li>Use <strong>CPU</strong> or <strong>GPU</strong></li>
<li>700+ Pretrained Embeddings including <strong>GloVe</strong>, <strong>Word2Vec</strong>,
<strong>BERT</strong>, <strong>DistilBERT</strong>, <strong>CamemBERT</strong>, <strong>RoBERTa</strong>, <strong>DeBERTa</strong>, <strong>XLM-RoBERTa</strong>, <strong>Longformer</strong>, <strong>ELMO</strong>, <strong>ELECTRA</strong>, <strong>ALBERT</strong>, <strong>XLNet</strong>, <strong>BioBERT</strong>, etc. </li>
<li>Multi-lingual NER models in <strong>Arabic, Bengali, Chinese, Danish, Dutch, English, Finnish, French, German, Hebrew, Italian, Japanese, Korean, Norwegian, Persian, Polish, Portuguese, Russian, Spanish, Swedish, Urdu, and many more!</strong></li>
</ul>
</div>
</div>
<div class="cell cell--12 cell--lg-7" style="text-align: center; padding: 10px">
{% highlight bash %}
{% endhighlight %}
<div class="table-wrapper">
<div class="table-wrapper-inner">
<table class="table2">
<thead>
<th>SYSTEM</th>
<th>YEAR</th>
<th>LANGUAGE</th>
<th>CONLL ‘03</th>
</thead>
<tbody>
<tr>
<td><strong>Spark NLP v4 🚀</strong></td>
<td>2022</td>
<td>Python/Scala/Java/R</td>
<td><strong>93 (test F1) <br> 96 (dev F1)</strong></td>
</tr>
<tr>
<td><strong>Spark NLP v3 🚀</strong></td>
<td>2021</td>
<td>Python/Scala/Java/R</td>
<td><strong>93 (test F1) <br> 95 (dev F1)</strong></td>
</tr>
<tr>
<td>spaCy v3</td>
<td>2021<br></td>
<td>Python</td>
<td>91.6</td>
</tr>
<tr>
<td>Stanza (StanfordNLP)</td>
<td>2020<br></td>
<td>Python</td>
<td>92.1</td>
</tr>
<tr>
<td>Flair</td>
<td>2018</td>
<td>Python</td>
<td>93.1</td>
</tr>
<tr>
<td>CoreNLP</td>
<td>2015</td>
<td>Java</td>
<td>89.6</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="table-wrapper">
<div class="table-wrapper-inner">
<table class="table2">
<thead>
<th>SYSTEM</th>
<th>YEAR</th>
<th>LANGUAGE</th>
<th>ONTONOTES</th>
</thead>
<tbody>
<tr>
<td><strong>Spark NLP v3 🚀</strong></td>
<td>2021</td>
<td>Python/Scala/Java/R</td>
<td><strong>90.0 (test F1) <br> 92.5 (dev F1)</strong></td>
</tr>
<tr>
<td>spaCy RoBERTa</td>
<td>2020<br></td>
<td>Python</td>
<td>89.8 (dev F1)</td>
</tr>
<tr>
<td>Stanza (StanfordNLP)</td>
<td>2020<br></td>
<td>Python</td>
<td>88.8 (dev F1)</td>
</tr>
<tr>
<td>Flair</td>
<td>2018</td>
<td>Python</td>
<td>89.7</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
{%- endif -%}
{%- if _section.children -%}
{%- assign _size = _section.children | size -%}
<div class="grid--container">
<div class="grid grid--p-3">
{%- for child in _section.children -%}
{%- if _size >= 2 -%}
{%- assign _cell_md_col = 3 -%}
{%- else -%}
{%- assign _cell_md_col = 12 | divided_by: _size -%}
{%- endif -%}
{%- if _size >= 4 -%}
{%- assign _cell_lg_col = 3 -%}
{%- else -%}
{%- assign _cell_lg_col = 12 | divided_by: _size -%}
{%- endif -%}
{%- if _size >= 6 -%}
{%- assign _cell_lg_col = 2 -%}
{%- else -%}
{%- assign _cell_lg_col = 12 | divided_by: _size -%}
{%- endif -%}
<div class="cell cell--6 cell--md-{{ _cell_md_col }} cell--lg-{{ _cell_lg_col }} ">
<div class="feature-item {{ _section.featureitem }} ">
{%- if child.image and child.image.src -%}
{%- if child.image.url -%}
{%- include snippets/get-nav-url.html path=child.image.url -%}
{%- assign _item_image_url = __return -%}
{%- else -%}
{%- assign _item_image_url = nil -%}
{%- endif -%}
{%- include snippets/get-nav-url.html path=child.image.src -%}
{%- assign _item_image_src = __return -%}
{%- if child.image.is_row -%}
{%- endif -%}
<figure class="mx-auto" style="{{ child.image.style }}">
<img src="{{ _item_image_src }}" />
</figure>
{%- if child.image.is_row -%}
{%- endif -%}
{%- endif -%}
<h4>{{ child.title }}</h4>
{%- if child.excerpt-%}
<p>{{ child.excerpt }}</p>
{%- endif -%}
{%- if child.actions -%}
<ul class="menu">
{%- for _action in child.actions -%}
{%- include snippets/get-nav-url.html path=_action.url -%}
{%- assign _url = __return -%}
{%- assign _type = _action.type | default: 'outline-info' -%}
<li><a class="button button--{{ _type }} button--pill button--lg"
href="{{ _url }}">{{ _action.text }}</a></li>
{%- endfor -%}
</ul>
{%- endif -%}
</div>
{%- if child.content-%}
<p>{{ child.content }}</p>
{%- endif -%}
</div>
{%- endfor-%}
</div>
</div>
{%- endif -%}
{%- if _section.image.full_width == true -%}
</div> {% comment %} end hero__content {% endcomment %}
{%- endif -%}
{%- if _section.image and _section.image.src -%}
{%- if _section.image.url -%}
{%- include snippets/get-nav-url.html path=_section.image.url -%}
{%- assign _section_image_url = __return -%}
{%- else -%}
{%- assign _section_image_url = nil -%}
{%- endif -%}
{%- include snippets/get-nav-url.html path=_section.image.src -%}
{%- assign _section_image_src = __return -%}
{%- if _section.image.is_row -%}
<div class="mb-5">
{%- endif -%}
<div class="mx-auto" style="{{ _section.image.style }}">
{%- if _section_image_url -%}
<a href="{{ _section_image_url }}">
{%- endif -%}
{%- if _section.image.full_width == true -%}
<img class="hero__cover hero__cover--full-width" src="{{ _section_image_src }}" />
{%- else -%}
<img class="hero__cover" src="{{ _section_image_src }}" />
{%- endif -%}
{%- if _section_image_url -%}
</a>
{%- endif -%}
</div>
{%- if _section.image.is_row -%}
</div>
{%- endif -%}
{%- endif -%}
{%- if _section.image.full_width != true -%}
</div> {% comment %} end hero__content {% endcomment %}
{%- endif -%}
{%- if _section.content-%}
<p>{{ _section.content }}</p>
{%- endif -%}
</section>
{%- endfor -%}
</div>
</div>
{{ content }}