- download model
if [[ ! -e 'numberbatch-17.06.txt' ]]; then
wget https://conceptnet.s3.amazonaws.com/downloads/2017/numberbatch/numberbatch-17.06.txt.gz
gunzip numberbatch-17.06.txt.gz
fi
sudo pip install wordfreq
sudo pip install gensim
| declare -a regions=('us-central1-a' 'us-west1-a' 'us-east1-b' 'northamerica-northeast1-a' 'us-east4-a' 'southamerica-east1-a' 'europe-west1-b' 'europe-west2-a' 'europe-west3-a' 'europe-west4-b' 'asia-south1-a' 'asia-southeast1-a') | |
| for region in ${regions[@]}; do | |
| gcloud compute instances create \ | |
| --machine-type=n1-highcpu-16 \ | |
| --preemptible \ | |
| --zone $region \ | |
| spotty-${region} \ | |
| --metadata-from-file startup-script=/home/ixaxaar/unitus_startup.sh |
| gdb python | |
| GNU gdb (GDB) 8.0.1 | |
| Copyright (C) 2017 Free Software Foundation, Inc. | |
| License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
| This is free software: you are free to change and redistribute it. | |
| There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
| and "show warranty" for details. | |
| This GDB was configured as "x86_64-pc-linux-gnu". | |
| Type "show configuration" for configuration details. | |
| For bug reporting instructions, please see: |
| import faiss | |
| from faiss import cast_integer_to_float_ptr as cast_float | |
| from faiss import cast_integer_to_int_ptr as cast_int | |
| from faiss import cast_integer_to_long_ptr as cast_long | |
| import torch as T | |
| def ptr(tensor): |
if [[ ! -e 'numberbatch-17.06.txt' ]]; then
wget https://conceptnet.s3.amazonaws.com/downloads/2017/numberbatch/numberbatch-17.06.txt.gz
gunzip numberbatch-17.06.txt.gz
fi
sudo pip install wordfreq
sudo pip install gensim
| #!/usr/bin/env bash | |
| sudo apt-get install -y python3-pip python3-dev python-dev python-pip | |
| sudo pip install langid | |
| sudo pip2 install langid | |
| sudo pip3 install langid |
| def beamPermute[T]( | |
| data: List[T], | |
| perplexityFn: List[T] => Double, | |
| startNode: T, | |
| beamSize: Int = 10, | |
| beamWindow: Int = 3 | |
| ): List[(List[T], Double)] = { | |
| var candidates = List((List(startNode), 0d)) |
| def beam[T]( | |
| data:List[List[T]], | |
| perplexityFn: List[T] => Double, | |
| startNode:T, | |
| beamSize:Int = 10) | |
| :List[(List[T], Double)] = { | |
| var candidates = List((List(startNode), 0d)) | |
| data.foreach{ case datum:List[T] => |
| #!/usr/bin/env bash | |
| # A script to install cassandra | |
| # Deploy a few instances as seed nodes first, this script can run on those seed nodes as well | |
| # Number of seed nodes equal number of data centers | |
| # Add the seed nodes here | |
| SEEDS[0]='172.31.40.98' | |
| SEEDS[1]='172.31.40.99' | |
| SEEDS[2]='172.31.40.100' |
Step[S,E] // an individual function applied to S to yield E . Steps are chained within a traversal.
TraversalStrategy // interceptor methods to alter the execution of the traversal (e.g. query rewriting).
TraversalSideEffects // key/value pairs that can be used to store global information about the traversal.
Traverser[T] // the object propagating through the Traversal currently representing an object of type T .