Skip to content

Instantly share code, notes, and snippets.

@vanangamudi
Last active November 13, 2017 13:45
Show Gist options
  • Save vanangamudi/bfb99af42e24be10fe690d4c5ecef85d to your computer and use it in GitHub Desktop.
Save vanangamudi/bfb99af42e24be10fe690d4c5ecef85d to your computer and use it in GitHub Desktop.
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.
2017-11-13 19:13:01.537186: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
2017-11-13 19:13:01.537204: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
2017-11-13 19:13:01.537211: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
2017-11-13 19:13:01.537227: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
A 0 0
44-year-old 0 0
man 0 0
taking 0 0
naproxen 4 0
for 0 0
chronic 0 0
low 0 0
back 0 0
pain 0 0
and 0 0
a 0 0
20-year-old 0 0
woman 0 0
on 0 0
oxaprozin 0 0
for 0 0
rheumatoid 0 0
arthritis 0 0
presented 0 0
with 0 0
tense 5 0
bullae 7 1
and 0 0
cutaneous 5 1
fragility 7 0
on 0 0
the 0 0
face 0 0
and 0 0
the 0 0
back 0 0
of 0 0
the 0 0
hands 0 0
. 0 0
(erext) suriyadeepan@nanopad:~/saama/Paper-Implementations/ADR-Pointer$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment