howardhsu / de-cnn Goto Github PK
View Code? Open in Web Editor NEWCode for ACL 2018 paper "Double Embeddings and CNN-based Sequence Labeling for Aspect Extraction"
License: MIT License
Code for ACL 2018 paper "Double Embeddings and CNN-based Sequence Labeling for Aspect Extraction"
License: MIT License
Hello, thank you for sharing the code.
It seemed that train data was processed and saved in the npz file. Would you please explain that how the data is organized in .npz file? I found that the shape of train_X is [2895,83], valid_X is [150,83]. What's the exact meaning of these information? Many thanks!
Can we use the same model for cross domains, i.e., other than restaurant and laptop?
hello,
Sorry, I am not code expert. Maybe it's a simple question. I am wondering, where do I find the eval.jar and A.jar. I have downloaded the other files and placed in the folder but I don't know how to create or where to find the jar file. Can you please guide me? thanks
As per my understanding, we are not supposed to take any hint (or any information) from the testing data for the model construction. However, in your implementation, when the word_idx.json is computed, the words in the testing set are also considered. (As per my understanding)
Can you please clarify on this matter.
Error: Could not find or load main class Main.Aspects
Caused by: java.lang.ClassNotFoundException: Main.Aspects
subprocess.CalledProcessError: Command '['java', '-cp', 'script/eval.jar', 'Main.Aspects', 'data/official_data/pred.xml', 'data/official_data/Laptops_Test_Gold.xml']' returned non-zero exit status 1.
i do not know what's wrong here
I have run the same code but could achieve the F1 score of 71.9 with the same hyperparameters, instead of 74.37 ( mentioned in the paper ). Can you please suggest what might have gone wrong?
Thanks in advance!
Excuse me sir, I want to ask about Amazon Laptop Dataset that you mention it on your paper when trained domain embedding. How do you get the laptop review only from the amazon review dataset? Maybe you can give explanation or the code. Thanks in advance.
Hello sir, I want to ask about the yelp dataset challenge 4 for train the embeddings
Hi,
Thanks for the code.
I wanted to what is the x_mask and how is it calculated when passed to crf ??
How to get a gen.vec file from GloVe: http://nlp.stanford.edu/data/glove.840B.300d.zip?
Hi,
thanks for your great work!
Do you happen to know, where one can download both required .jar
files?
I'm unable to download them from the official pages, making it impossible to evaluate my models :(
Am I doing something wrong or looking in the wrong place?
Thanks in advance!
First of all thank you so much for your effort in this code. I want to ask you if we can use this code with another language such as the Arabic language.
Thanks a lot,
您好,感谢开源!我试了你程序中的CRF,但是CRF的loss值非常大,请问您程序中的crf层是怎么使用的呢?谢谢
感谢您的代码。
请问,您是如何从原始xml文件得到restaurant.npz文件的呢?restaurant.npz内部格式及顺序是什么?
再次感谢!
Hi, thanks for sharing. It is mentioned in the paper that the result is statistical significant at the level of 0.05. Can you explain how to get the number 0.05?
您好,是否可以提供下原始数据呢,在文件data/official_data/的全部数据,谢谢您,我在整理下载数据的时候总是断。
data/official_data/Laptops_Test_Data_PhaseA.xml
data/official_data/Laptops_Test_Gold.xml
script/eval.jar
data/official_data/EN_REST_SB1_TEST.xml.A
data/official_data/EN_REST_SB1_TEST.xml.gold
script/A.jar
你好,首先感谢代码开源;
我在阅读代码时,没有发现在训练阶段哪个地方使用了原始的xml格式的数据,好像是.npz的数据,这里跟readme说明是否有出入,谢谢!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.