This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/llm_generate.py b/llm_generate.py | |
index 061cc99..73fb208 100755 | |
--- a/llm_generate.py | |
+++ b/llm_generate.py | |
@@ -9,6 +9,8 @@ | |
# "protobuf>=6.30.1", | |
# "spacy>=3.8.4", | |
# "ftfy>=6.3.1", | |
+# "ai2-olmo", | |
+# "datasets", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/llm_generate.py b/llm_generate.py | |
index 061cc99..73fb208 100755 | |
--- a/llm_generate.py | |
+++ b/llm_generate.py | |
@@ -9,6 +9,8 @@ | |
# "protobuf>=6.30.1", | |
# "spacy>=3.8.4", | |
# "ftfy>=6.3.1", | |
+# "ai2-olmo", | |
+# "datasets", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'url-http) | |
(defun insert-bibtex-from-doi () | |
(interactive) | |
(let* ((doi (string-trim (gui-get-primary-selection))) | |
(url (if (string-prefix-p "https://doi.org/" doi) | |
doi | |
(concat "https://doi.org/" doi))) | |
(url-request-method "GET") | |
(url-mime-accept-string "application/x-bibtex")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set.seed(1) | |
mu <- 0 | |
sigma <- 1 | |
N.trials <- 20 | |
N.sims <- 50 | |
rnorm(N.trials*N.sims, mu, sigma) |> | |
matrix(nrow=N.sims) -> Y | |
d <- apply(Y, 1, \(y) c(mean(y), sd(y)/sqrt(length(y)))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(ggplot2) | |
library(dplyr) | |
options(scipen=999) | |
N <- 100000 # Number of simulations | |
# Data: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import nltk | |
from statistics import mean, stdev, median, mode | |
nltk.download('brown') | |
tokens = nltk.corpus.brown.tagged_words(tagset="universal") | |
types = list(dict.fromkeys(tokens)) | |
# Lengths of tokens / types but ignoring punctuation, numbers, and X | |
# which is mostly foreign words (German, French, Latin) but strangely | |
# also a small number of common English words: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<opml version="1.0"> | |
<head> | |
<title>(Psycho)linguistics journals</title> | |
</head> | |
<body> | |
<outline title="Annual Rev Ling" xmlUrl="https://www.annualreviews.org/action/showFeed?ui=45mu4&mi=3fndc3&ai=6690&jc=linguistics&type=etoc&feed=atom"/> | |
<outline title="Brain & Language" xmlUrl="https://rss.sciencedirect.com/publication/science/0093934X"/> | |
<outline title="Cognition" xmlUrl="http://rss.sciencedirect.com/publication/science/00100277"/> | |
<outline title="Cognitive Science" xmlUrl="https://onlinelibrary.wiley.com/feed/15516709/most-recent"/> |
This little project now lives in a GitHub repository: https://github.com/tmalsburg/binomialCRIs
Compile this template by executing the following in a command shell:
pdflatex test && biber test && pdflatex test && pdflatex test
This template uses biblatex and biber instead of good old BibTeX. The bibliography files (*.bib
) can have the same format (although biblatex allows using some interesting extensions). However, the biblatex+biber combo is much more powerful than good-old BibTeX (e.g. support for multiple bibliographies in one document) and comes with great documentation.
Suggestions for improvements welcome.
NewerOlder