Skip to content

Instantly share code, notes, and snippets.

@xinzhel
xinzhel / windows setup.md
Last active July 10, 2023 08:35
Windows Setup
wget https://repo.anaconda.com/miniconda/Miniconda3-py38_23.3.1-0-Linux-x86_64.sh
bash Miniconda3-py38_23.3.1-0-Linux-x86_64.sh

This will download Python version 3.8. Check links here for more versions.

@xinzhel
xinzhel / linux _environment_setup_on_windows.md
Last active May 30, 2022 08:04
Linux environment setup on Windows (WSL 2)
  1. Install WSL 2 (with separate linux kernel) and Linux distribution
# run the following command in PowerShell
$ wsl --install -d Ubuntu-18.04

# Ubuntu-18.04 is my preferred Linux distribution. You can find all the supported distributions by running
# wsl --list --online
  • Caveat: you may not launch wsl or Ubuntu without restarting my PC to launch the Ubuntu
{
"dataset_reader": {
"type": "sst_tokens",
"token_indexers": {
"tokens": {
"type": "pretrained_transformer",
"model_name": "bert-base-uncased",
"namespace": "tokens"
}
},
// Configuration for a basic LSTM sentiment analysis classifier, using the binary Stanford Sentiment
// Treebank (Socher at al. 2013).
{
"dataset_reader": {
"type": "sst_tokens",
"use_subtrees": true,
"granularity": "2-class",
"tokenizer": {
"type": "spacy"
},