Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modify docqa #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Transfer_Learning/document-qa/docqa.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@
"\n",
"## Setup\n",
"### Dependencies\n",
"We require python >= 3.5, tensorflow 1.2, and a handful of other supporting libraries. \n",
"We require python >= 3.5, tensorflow 1.10, and a handful of other supporting libraries. \n",
"Tensorflow should be installed separately following the docs. To install the other dependencies use the commands below from a terminal in the linux DLVM first.\n",
"\n",
"```\n",
"\n",
"conda create --name <myenv>\n",
"conda create --name <myenv> Python=3.6\n",
"source activate <myenv>\n",
"cd /home/<user>/notebooks\n",
"git clone https://github.com/antriv/Transfer_Learning_Text.git\n",
"cd Transfer_Learning_Text/Transfer_Learning/document-qa/\n",
"pip install -r requirements.txt\n",
"pip install tensorflow-gpu==1.2\n",
"pip install tensorflow-gpu\n",
"python -m nltk.downloader punkt stopwords\n",
"```\n",
"\n",
Expand All @@ -40,10 +40,10 @@
"```\n",
"source activate <myenv>\n",
"pip install ipykernel\n",
"sudo \"/home/<user>/.conda/envs/<myenv>/bin/python\" -m ipykernel install --name <docqa> --display-name \"<docqa>\"\n",
"sudo \"/home/<user>/.conda/envs/<myenv>/bin/python\" -m ipykernel install --name <myenv> --display-name \"<myenv>\"\n",
"```\n",
"\n",
"To run this notebook, choose the kernel `\"<docqa>\"`"
"To run this notebook, choose the kernel `\"<myenv>\"`"
]
},
{
Expand Down Expand Up @@ -198,7 +198,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.4"
"version": "3.6.6"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion Transfer_Learning/document-qa/docqa/nn/recurrent_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
MergeLayer, Encoder
from tensorflow.contrib.cudnn_rnn.python.ops import cudnn_rnn_ops
#from tensorflow.contrib.cudnn_rnn.python.ops.cudnn_rnn_ops import CudnnCompatibleGRUCell
from tensorflow.contrib.keras.python.keras.initializers import TruncatedNormal
from tensorflow.keras.initializers import TruncatedNormal
from tensorflow.contrib.rnn import LSTMStateTuple, LSTMBlockFusedCell, GRUBlockCell
from tensorflow.python.ops.rnn import dynamic_rnn, bidirectional_dynamic_rnn

Expand Down