xinyangz / ltrn Goto Github PK
View Code? Open in Web Editor NEWCode for WWW 2021 paper "Minimally Supervised Structure Rich Text Categorization by Learning on Text-Rich Networks"
Code for WWW 2021 paper "Minimally Supervised Structure Rich Text Categorization by Learning on Text-Rich Networks"
Hi Xinyang,
I am getting error that seems to point to a local file in your environment.
run_amazon.sh
FileNotFoundError: [Errno 2] No such file or directory: '/data1/xinyang/debug_train.csv'
This is referenced in:
bert/dataset.py: df_train.to_csv("/data1/xinyang/debug_train.csv")
Should this be replaced with train_docs.csv or is there another file needed?
Best regards,
Raja
Hi Xinyang,
When I ran the LTRN, I am getting some errors.
File "miniconda3/lib/python3.8/site-packages/transformers/hf_argparser.py", line 159
ValueError: Some specified arguments are not used by the HfArgumentParser: [remaining_args]
After printing the value of remaining_args, I found remaining_args is false. So I deleted the ValyeError and return the namespace. Then the code ran successfully.
I revised joint_traing.py train_bert line 202. I revised "torch.distributed.launch" with "torch.distributed.run". If I could not revise, it had an error.
RuntimeError:Invalid device string: '0'
My running the experiments is python3.8+torch1.9.0+cuda11.1. The GPU is RTX30902, memory is 24G2.
Can I modify the code like this?
When the number of iterations is 3, the accuracy of amazon is:
Iter 0,Mi-F1 0.0682 Ma-F1 0.0519
Iter 1,Mi-F1 0.2091 Ma-F1 0.1069
Iter 2,Mi-F1 0.2323 Ma-F1 0.1053
The accuracy of books is:
Iter 0,Mi-F1 0.4348 Ma-F1 0.4300
Iter 1,Mi-F1 0.5535 Ma-F1 0.5694
Iter 2,Mi-F1 0.5431 Ma-F1 0.5569
They are less than 92%.
What do you think are the possible reasons for the low accuracy?
Best regards,
Li Yun
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.