Ref: https://gist.github.com/rnwolf/e09ae9ad6d3ac759767d129d52cab1f1
Key Binding | Description |
---|---|
SPC | < space > |
RET | < return > |
C | < ctrl > |
M | < alt >, M stands for Meta |
#include "stdio.h" | |
#include "unistd.h" | |
#define MSGLEN 32 | |
int main (int argc, char const* argv[]) | |
{ | |
// check for arguments | |
if(argc < 2){ |
import tensorflow as tf | |
training = tf.placeholder(dtype=tf.bool, name='is_training') | |
a = tf.placeholder(dtype=tf.float32, name='a') | |
b = tf.placeholder(dtype=tf.float32, name='b') | |
c = tf.cond(training, lambda : a+b, lambda : a*b) | |
sess = tf.Session() |
ade,neurologic deterioration | |
drug,nitrous oxide | |
sequence,Patients,with,vitamin,B12,deficiency,are,exceedingly,sensitive,to,neurologic,deterioration,following,nitrous,oxide,anesthesia,. | |
labels,0,0,0,0,0,0,0,0,0,5,7,0,1,3,0,0 | |
ade_mask,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0 | |
==============================, ============================= | |
ade,prolonged jaundice,sicca complex | |
drug,thiabendazole | |
sequence,A,55-yr-old,man,developed,prolonged,jaundice,and,sicca,complex,after,a,course,of,thiabendazole,therapy,. | |
labels,0,0,0,0,5,7,0,5,7,0,0,0,0,4,0,0 |
python predict.py | |
/home/suriyadeepan/saama/Paper-Implementations/Entity-Relation-Extraction/env/erext/lib/python3.5/site-packages/nltk/tag/stanford.py:149: DeprecationWarning: | |
The StanfordTokenizer will be deprecated in version 3.2.5. | |
Please use nltk.tag.corenlp.CoreNLPPOSTagger or nltk.tag.corenlp.CoreNLPNERTagger instead. | |
super(StanfordPOSTagger, self).__init__(*args, **kwargs) | |
type your sequence>> A 44-year-old man taking naproxen for chronic low back pain and a 20-year-old woman on oxaprozin for rheumatoid arthritis presented with tense bullae and cutaneous fragility on the face and the back of the hands.|oxaprozin | |
type your sequence>> | |
built 1 datapoints so far | |
:: loading vocabulary from disk | |
2017-11-13 19:13:01.537157: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations. |
Long question. Please bear with me. | |
Three entities. Server, User, Tracker(borrowing from bittorrent)/Broker. Servers are consumer computers. Users can be anyone and gain service from server via desktop/mobile application. For a concrete example, lets take the data tagging for machine algorithms. A user needs to look at bunch of samples and classify them into well, a class. Images can be tagged to be dogs or cats or text can be tagged as positive or negative reviews. | |
Server, contain these data that are to be tagged. The problem is server and users cannot stay online 24/7. Tracker/Broker can. So the users can request a batch of samples for tagging. This request is recorded by the tracker. And when server comes online, it will query for two things. | |
1. Has anyone requested for new batch? | |
2. Has anyone uploaded tagged data? |
# Define some special things | |
SPECIAL = '*|' | |
ALPHABET = '10' | |
EPSILON = None | |
# functions | |
def automaton_print(automaton): | |
"Neatly prints the automaton" | |
states, alphabet, start, final, transfer = automaton | |
print('STATES : ', states) |
Ref: https://gist.github.com/rnwolf/e09ae9ad6d3ac759767d129d52cab1f1
Key Binding | Description |
---|---|
SPC | < space > |
RET | < return > |
C | < ctrl > |
M | < alt >, M stands for Meta |
(ql:quickload :drakma) | |
(ql:quickload :cl-json) | |
(ql:quickload :plump) | |
(ql:quickload :babel) | |
(ql:quickload :tooter) | |
(ql:quickload :split-sequence) | |
(defvar *feed-path* "https://lobste.rs/rss") | |
(setf drakma:*drakma-default-external-format* :UTF-8) |
;; | |
;; scheme coin - a lispchain (aka blockchain) implementation | |
;; | |
;; Burton Samograd | |
;; [email protected] | |
;; Copyright - 2017 | |
;; | |
;; Interested in helping out with the code? Email me. | |
;; | |
;; Bitcoin: 1HzWXjoQjzdLBm1eKeuWFrZx96kiop5GGy |