Skip to content

Commit 071c79d

Browse files
Gregor WiedemannGregor Wiedemann
Gregor Wiedemann
authored and
Gregor Wiedemann
committed
tut3 v2020
1 parent a94f5af commit 071c79d

File tree

8 files changed

+113
-93
lines changed

8 files changed

+113
-93
lines changed

docs/Tutorial_3_Frequency.html

+56-46
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<!DOCTYPE html>
22

3-
<html xmlns="http://www.w3.org/1999/xhtml">
3+
<html>
44

55
<head>
66

77
<meta charset="utf-8" />
8-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
98
<meta name="generator" content="pandoc" />
9+
<meta http-equiv="X-UA-Compatible" content="IE=EDGE" />
1010

1111

1212
<meta name="author" content="Andreas Niekler, Gregor Wiedemann" />
1313

14-
<meta name="date" content="2019-07-15" />
14+
<meta name="date" content="2020-09-25" />
1515

1616
<title>Tutorial 3: Frequency analysis</title>
1717

@@ -93,7 +93,6 @@
9393
}
9494
img {
9595
max-width:100%;
96-
height: auto;
9796
}
9897
.tabbed-pane {
9998
padding-top: 12px;
@@ -242,6 +241,7 @@
242241
border: none;
243242
display: inline-block;
244243
border-radius: 4px;
244+
background-color: transparent;
245245
}
246246

247247
.tabset-dropdown > .nav-tabs.nav-tabs-open > li {
@@ -254,49 +254,10 @@
254254
}
255255
</style>
256256

257-
<script>
258-
$(document).ready(function () {
259-
window.buildTabsets("TOC");
260-
});
261-
262-
$(document).ready(function () {
263-
$('.tabset-dropdown > .nav-tabs > li').click(function () {
264-
$(this).parent().toggleClass('nav-tabs-open')
265-
});
266-
});
267-
</script>
268-
269257
<!-- code folding -->
270258

271259

272260

273-
<script>
274-
$(document).ready(function () {
275-
276-
// move toc-ignore selectors from section div to header
277-
$('div.section.toc-ignore')
278-
.removeClass('toc-ignore')
279-
.children('h1,h2,h3,h4,h5').addClass('toc-ignore');
280-
281-
// establish options
282-
var options = {
283-
selectors: "h1,h2,h3",
284-
theme: "bootstrap3",
285-
context: '.toc-content',
286-
hashGenerator: function (text) {
287-
return text.replace(/[.\\/?&!#<>]/g, '').replace(/\s/g, '_').toLowerCase();
288-
},
289-
ignoreSelector: ".toc-ignore",
290-
scrollTo: 0
291-
};
292-
options.showAndHide = true;
293-
options.smoothScroll = true;
294-
295-
// tocify
296-
var toc = $("#TOC").tocify(options).data("toc-tocify");
297-
});
298-
</script>
299-
300261
<style type="text/css">
301262

302263
#TOC {
@@ -309,6 +270,12 @@
309270
}
310271
}
311272

273+
@media print {
274+
.toc-content {
275+
/* see https://github.com/w3c/csswg-drafts/issues/4434 */
276+
float: right;
277+
}
278+
}
312279

313280
.toc-content {
314281
padding-left: 30px;
@@ -460,7 +427,7 @@
460427

461428
<h1 class="title toc-ignore">Tutorial 3: Frequency analysis</h1>
462429
<h4 class="author">Andreas Niekler, Gregor Wiedemann</h4>
463-
<h4 class="date">2019-07-15</h4>
430+
<h4 class="date">2020-09-25</h4>
464431

465432
</div>
466433

@@ -506,7 +473,7 @@ <h1><span class="header-section-number">1</span> Text preprocessing</h1>
506473
<p>From the preprocessed corpus, we create a new DTM.</p>
507474
<pre class="r"><code>DTM &lt;- corpus_tokens %&gt;%
508475
dfm() </code></pre>
509-
<p>The resulting DTM should have 233 rows and 18167 columns.</p>
476+
<p>The resulting DTM should have 233 rows and 18278 columns.</p>
510477
</div>
511478
<div id="time-series" class="section level1">
512479
<h1><span class="header-section-number">2</span> Time series</h1>
@@ -618,7 +585,7 @@ <h1>References</h1>
618585
</div>
619586
</div>
620587

621-
<p>2019, Andreas Niekler and Gregor Wiedemann. GPLv3. <a href="https://tm4ss.github.io">tm4ss.github.io</a></p>
588+
<p>2020, Andreas Niekler and Gregor Wiedemann. GPLv3. <a href="https://tm4ss.github.io">tm4ss.github.io</a></p>
622589

623590

624591
</div>
@@ -639,6 +606,49 @@ <h1>References</h1>
639606

640607
</script>
641608

609+
<!-- tabsets -->
610+
611+
<script>
612+
$(document).ready(function () {
613+
window.buildTabsets("TOC");
614+
});
615+
616+
$(document).ready(function () {
617+
$('.tabset-dropdown > .nav-tabs > li').click(function () {
618+
$(this).parent().toggleClass('nav-tabs-open')
619+
});
620+
});
621+
</script>
622+
623+
<!-- code folding -->
624+
625+
<script>
626+
$(document).ready(function () {
627+
628+
// move toc-ignore selectors from section div to header
629+
$('div.section.toc-ignore')
630+
.removeClass('toc-ignore')
631+
.children('h1,h2,h3,h4,h5').addClass('toc-ignore');
632+
633+
// establish options
634+
var options = {
635+
selectors: "h1,h2,h3",
636+
theme: "bootstrap3",
637+
context: '.toc-content',
638+
hashGenerator: function (text) {
639+
return text.replace(/[.\\/?&!#<>]/g, '').replace(/\s/g, '_');
640+
},
641+
ignoreSelector: ".toc-ignore",
642+
scrollTo: 0
643+
};
644+
options.showAndHide = true;
645+
options.smoothScroll = true;
646+
647+
// tocify
648+
var toc = $("#TOC").tocify(options).data("toc-tocify");
649+
});
650+
</script>
651+
642652
<!-- dynamically load mathjax for compatibility with self-contained -->
643653
<script>
644654
(function () {
Loading
Loading
Loading
Loading

docs/footer.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
<p>2019, Andreas Niekler and Gregor Wiedemann. GPLv3. <a href="https://tm4ss.github.io">tm4ss.github.io</a></p>
1+
<p>2020, Andreas Niekler and Gregor Wiedemann. GPLv3. <a href="https://tm4ss.github.io">tm4ss.github.io</a></p>
22

docs/index.html

+55-45
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<!DOCTYPE html>
22

3-
<html xmlns="http://www.w3.org/1999/xhtml">
3+
<html>
44

55
<head>
66

77
<meta charset="utf-8" />
8-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
98
<meta name="generator" content="pandoc" />
9+
<meta http-equiv="X-UA-Compatible" content="IE=EDGE" />
1010

1111

1212
<meta name="author" content="Andreas Niekler, Gregor Wiedemann" />
1313

14-
<meta name="date" content="2019-07-15" />
14+
<meta name="date" content="2020-09-25" />
1515

1616
<title>Text mining for humanists and social scientists in R</title>
1717

@@ -89,7 +89,6 @@
8989
}
9090
img {
9191
max-width:100%;
92-
height: auto;
9392
}
9493
.tabbed-pane {
9594
padding-top: 12px;
@@ -238,6 +237,7 @@
238237
border: none;
239238
display: inline-block;
240239
border-radius: 4px;
240+
background-color: transparent;
241241
}
242242

243243
.tabset-dropdown > .nav-tabs.nav-tabs-open > li {
@@ -250,49 +250,10 @@
250250
}
251251
</style>
252252

253-
<script>
254-
$(document).ready(function () {
255-
window.buildTabsets("TOC");
256-
});
257-
258-
$(document).ready(function () {
259-
$('.tabset-dropdown > .nav-tabs > li').click(function () {
260-
$(this).parent().toggleClass('nav-tabs-open')
261-
});
262-
});
263-
</script>
264-
265253
<!-- code folding -->
266254

267255

268256

269-
<script>
270-
$(document).ready(function () {
271-
272-
// move toc-ignore selectors from section div to header
273-
$('div.section.toc-ignore')
274-
.removeClass('toc-ignore')
275-
.children('h1,h2,h3,h4,h5').addClass('toc-ignore');
276-
277-
// establish options
278-
var options = {
279-
selectors: "h1,h2,h3",
280-
theme: "bootstrap3",
281-
context: '.toc-content',
282-
hashGenerator: function (text) {
283-
return text.replace(/[.\\/?&!#<>]/g, '').replace(/\s/g, '_').toLowerCase();
284-
},
285-
ignoreSelector: ".toc-ignore",
286-
scrollTo: 0
287-
};
288-
options.showAndHide = true;
289-
options.smoothScroll = true;
290-
291-
// tocify
292-
var toc = $("#TOC").tocify(options).data("toc-tocify");
293-
});
294-
</script>
295-
296257
<style type="text/css">
297258

298259
#TOC {
@@ -305,6 +266,12 @@
305266
}
306267
}
307268

269+
@media print {
270+
.toc-content {
271+
/* see https://github.com/w3c/csswg-drafts/issues/4434 */
272+
float: right;
273+
}
274+
}
308275

309276
.toc-content {
310277
padding-left: 30px;
@@ -456,7 +423,7 @@
456423

457424
<h1 class="title toc-ignore">Text mining for humanists and social scientists in R</h1>
458425
<h4 class="author">Andreas Niekler, Gregor Wiedemann</h4>
459-
<h4 class="date">2019-07-15</h4>
426+
<h4 class="date">2020-09-25</h4>
460427

461428
</div>
462429

@@ -499,7 +466,7 @@ <h1><span class="header-section-number">5</span> License</h1>
499466
<pre><code>Wiedemann, Gregor; Niekler, Andreas (2017): Hands-on: a five day text mining course for humanists and social scientists in R. Proceedings of the 1st Workshop Teaching NLP for Digital Humanities (Teach4DH@GSCL 2017), Berlin.</code></pre>
500467
</div>
501468

502-
<p>2019, Andreas Niekler and Gregor Wiedemann. GPLv3. <a href="https://tm4ss.github.io">tm4ss.github.io</a></p>
469+
<p>2020, Andreas Niekler and Gregor Wiedemann. GPLv3. <a href="https://tm4ss.github.io">tm4ss.github.io</a></p>
503470

504471

505472
</div>
@@ -520,6 +487,49 @@ <h1><span class="header-section-number">5</span> License</h1>
520487

521488
</script>
522489

490+
<!-- tabsets -->
491+
492+
<script>
493+
$(document).ready(function () {
494+
window.buildTabsets("TOC");
495+
});
496+
497+
$(document).ready(function () {
498+
$('.tabset-dropdown > .nav-tabs > li').click(function () {
499+
$(this).parent().toggleClass('nav-tabs-open')
500+
});
501+
});
502+
</script>
503+
504+
<!-- code folding -->
505+
506+
<script>
507+
$(document).ready(function () {
508+
509+
// move toc-ignore selectors from section div to header
510+
$('div.section.toc-ignore')
511+
.removeClass('toc-ignore')
512+
.children('h1,h2,h3,h4,h5').addClass('toc-ignore');
513+
514+
// establish options
515+
var options = {
516+
selectors: "h1,h2,h3",
517+
theme: "bootstrap3",
518+
context: '.toc-content',
519+
hashGenerator: function (text) {
520+
return text.replace(/[.\\/?&!#<>]/g, '').replace(/\s/g, '_');
521+
},
522+
ignoreSelector: ".toc-ignore",
523+
scrollTo: 0
524+
};
525+
options.showAndHide = true;
526+
options.smoothScroll = true;
527+
528+
// tocify
529+
var toc = $("#TOC").tocify(options).data("toc-tocify");
530+
});
531+
</script>
532+
523533
<!-- dynamically load mathjax for compatibility with self-contained -->
524534
<script>
525535
(function () {

footer.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
<p>2019, Andreas Niekler and Gregor Wiedemann. GPLv3. <a href="https://tm4ss.github.io">tm4ss.github.io</a></p>
1+
<p>2020, Andreas Niekler and Gregor Wiedemann. GPLv3. <a href="https://tm4ss.github.io">tm4ss.github.io</a></p>
22

0 commit comments

Comments
 (0)