- Udacity Course
- Github Tutorial
- Online Book: Except advanced contents (e.g, git objects), I prefer its practical tutorial for setups for the Bash environment. However, it lacks the link for the necessary files to achieve auto-completion, prompt on bash.
This file contains 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
// 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" | |
}, |
This file contains 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
{ | |
"dataset_reader": { | |
"type": "sst_tokens", | |
"token_indexers": { | |
"tokens": { | |
"type": "pretrained_transformer", | |
"model_name": "bert-base-uncased", | |
"namespace": "tokens" | |
} | |
}, |
This file contains 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 logging | |
import os | |
import sys | |
import json | |
from typing import Dict, Optional | |
from tqdm.auto import tqdm | |
import timeit | |
import numpy as np | |
test = [] | |
train = [] |
This file contains 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
sudo apt update && upgrade | |
# install pip, ipython3 | |
sudo apt install python3-pip | |
# 1. load pyenv | |
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash |
This file contains 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
#!/bin/bash | |
# Script to create Azure DSVM Spot instance with NVidia P100 GPU | |
read -p "Azure VM Name (default: dsvm): " vminput | |
vmname=${vminput:=dsvm} | |
while [ $password != $password2 ] ; do | |
read -s -p "Choose your Password: " password | |
echo | |
read -s -p "Re-enter Password: " password2 | |
echo |
This file contains 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 socket | |
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock: | |
sock.bind(("", 0) | |
primary_port = sock.getsockname()[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
Information about Academic Publication on Natural Language Processing (NLP).
- CORE Ranking
- China Computer Federation Recommended List and Ranking
- ACL Upcoming Events
- All Upcoming Events
- Finding Paper Search Engines
https://github.com/armancohan/long-summarization
$wget https://storage.googleapis.com/allennlp-public-data/cnndm-combined-data-2020.07.13.tar.gz
$tar -xzf cnndm-combined-data-2020.07.13.tar.gz
$mv cnndm-combined-data-2020.07.13 cnn_dm
OlderNewer