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
The format of files: | |
1. File train.txt.src is the input document. Each line contains several tokenized sentences delimited by ##SENT## of a document. | |
2. File train.txt.tgt is the summary of document. Each line contains several tokenized summaries delimited by ##SENT## of the corresponding document. | |
3. File train.rouge_bigram_F1.oracle.F1mmrTrue.regGain is the TSV training label and ROUGE F1 score file. |
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 torch | |
from torch import nn | |
from torch.autograd import Variable as Var | |
from torch.optim import SGD | |
from torch.nn.utils.rnn import pad_packed_sequence as unpack | |
from torch.nn.utils.rnn import pack_padded_sequence as pack | |
import random |
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
D:\pytorch\pytorch-scripts>cuda9 | |
D:\pytorch\pytorch-scripts>REM @echo off | |
D:\pytorch\pytorch-scripts>IF NOT EXIST "setup.py" IF NOT EXIST "pytorch" ( | |
call internal\clone.bat | |
IF ERRORLEVEL 1 goto eof | |
) |
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
********************************************************************** | |
** Visual Studio 2017 Developer Command Prompt v15.4.3 | |
** Copyright (c) 2017 Microsoft Corporation | |
********************************************************************** | |
[vcvarsall.bat] Environment initialized for: 'x86_x64' | |
C:\Users\v-qizhou\source>d: | |
D:\>cd pytorch\pytorch |
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
1>------ Build started: Project: ZERO_CHECK, Configuration: Debug x64 ------ | |
1> Checking Build System | |
1> CMake does not need to re-run because D:/mxnet/build/CMakeFiles/generate.stamp is up-to-date. | |
1> CMake does not need to re-run because D:/mxnet/build/dmlc-core/CMakeFiles/generate.stamp is up-to-date. | |
1> CMake does not need to re-run because D:/mxnet/build/tests/cpp/CMakeFiles/generate.stamp is up-to-date. | |
1> CMake does not need to re-run because D:/mxnet/build/example/image-classification/predict-cpp/CMakeFiles/generate.stamp is up-to-date. | |
2>------ Build started: Project: dmlccore, Configuration: Debug x64 ------ | |
3>------ Skipped Build: Project: dmlccore_lint, Configuration: Debug x64 ------ | |
3>Project not selected to build for this solution configuration | |
4>------ Skipped Build: Project: mxnet_lint, Configuration: Debug x64 ------ |
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 | |
function installVPN5(){ | |
yum -y install make libpcap iptables gcc-c++ logrotate tar cpio perl pam tcp_wrappers | |
rpm -ivh dkms-2.0.17.5-1.noarch.rpm | |
rpm -ivh kernel_ppp_mppe-1.0.2-3dkms.noarch.rpm | |
rpm -qa kernel_ppp_mppe | |
rpm -Uvh ppp-2.4.4-9.0.rhel5.i386.rpm | |
rpm -ivh pptpd-1.3.4-1.rhel5.1.i386.rpm |