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
FROM ubuntu:20.04 | |
# Software versions | |
ARG R_VERSION=4.3.0 | |
ARG RSTUDIO_VERSION=2023.06.0-421 | |
# Locale configuration | |
RUN apt-get update && apt-get install -y --no-install-recommends locales | |
RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen && \ | |
locale-gen en_US.utf8 && \ |
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
*.csv | |
__pycache__ | |
.ipynb_checkpoints |
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 json | |
from pathlib import Path | |
from syntaxgym import Suite | |
import transformers | |
# Materials from https://github.com/cpllab/syntactic-generalization | |
ds = [] | |
for p in Path("../syntactic-generalization/test_suites/json").glob("*.json"): | |
with open(p) as f: |
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
version: '3' | |
services: | |
app: | |
image: node:latest | |
restart: on-failure | |
depends_on: | |
- db | |
ports: # map container ports to host ports. format is <HOST_PORT>:<CONTAINER_PORT> | |
- "12367:80" |
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
sentence_id | token_id | token | surprisal | |
---|---|---|---|---|
1 | 1 | In | 4.57937 | |
1 | 2 | <unk> | 7.45049 | |
1 | 3 | County | 12.6541 | |
1 | 4 | <unk> | 6.11317 | |
1 | 5 | near | 12.2238 | |
1 | 6 | the | 1.98095 | |
1 | 7 | River | 15.709 | |
1 | 8 | <unk> | 6.92787 | |
1 | 9 | there | 11.7415 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
.ipynb_checkpoints |
NewerOlder