Comments (6)
先解压NYT_data.zip文件 unzip NYT_data/NYT_data.zip
from intra-bag-and-inter-bag-attentions.
嗯嗯,是的解压了,就是自己 bash precess.sh 的时候,报错了,帮忙看看,谢谢!
Init Begin.
wordTotal= 114042
Word dimension= 50
preprocess.sh: line 2: 12694 Segmentation fault (core dumped) ./extract
bags_train.txt
Traceback (most recent call last):
File "data2pkl.py", line 83, in
data2pickle('bags_train.txt','train_temp.pkl',1)
File "data2pkl.py", line 75, in data2pickle
data = readData(input, mode)
File "data2pkl.py", line 20, in readData
f = codecs.open(filename, 'r')
File "/home/mrc/anaconda3/envs/env3/lib/python3.6/codecs.py", line 895, in open
file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: 'bags_train.txt'
load test and train raw data...
Traceback (most recent call last):
File "pickledata.py", line 236, in
testData = pickle.load(open('test_temp.pkl', 'rb'), encoding='utf-8')
FileNotFoundError: [Errno 2] No such file or directory: 'test_temp.pkl'
rm: cannot remove 'temp': No such file or directory
from intra-bag-and-inter-bag-attentions.
extract.cpp中267行,fout.open(("word2id.txt"),ios::out);但是也没有这个word2id.txt文件。
from intra-bag-and-inter-bag-attentions.
- 确定文件结构是下面这样的
Intra-Bag-and-Inter-Bag-Attentions
|-- figure
|-- CNNmethods.pdf
|-- PCNNmethods.pdf
|-- model
|-- embedding.py
|-- model_bagatt.py
|-- pcnn.py
|-- NYT_data
|-- relation2id.txt
|-- test.txt
|-- train.txt
|-- vec.bin
|-- preprocess
|-- data2pkl.py
|-- extract.cpp
|-- pickledata.py
|-- preprocess.sh
|-- plot.py
|-- README.md
|-- train.py
- 在preprocess文件夹下执行的
bash preprocess.sh
cd preprocess; bash preprocess.sh; cd ..
from intra-bag-and-inter-bag-attentions.
你可以单独运行extract.cpp文件获得那些pkl文件,再手动运行data2pkl和pkl2data就可以了
from intra-bag-and-inter-bag-attentions.
你可以单独运行extract.cpp文件获得那些pkl文件,再手动运行data2pkl和pkl2data就可以了
请问怎么单独运行呢,用什么?
from intra-bag-and-inter-bag-attentions.
Related Issues (13)
- RuntimeError : dimension specified as 0 but tensor has no dimensions HOT 4
- About the PR curve data points
- 请问一下为什么不报错就退出了
- Using a different dataset HOT 2
- code wrong
- why word_id + 1 in data2pkl.py? HOT 1
- FileNotFoundError: [Errno 2] No such file or directory: 'result/PCNN_ATTRA.model'
- 关于P@N问题 HOT 1
- why parameter 'pf2=PF1' in building of Model() in train.py? HOT 2
- 请问为什么 model中 .pcnn文件中,初始化cnn的时候, input_channel是1,输出维度为cnn_layers么 HOT 1
- Issue about data HOT 3
- 输入自己的数据集问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from intra-bag-and-inter-bag-attentions.