zzsfornlp / zmsp Goto Github PK
View Code? Open in Web Editor NEWThe Mingled Structured Predictor
License: GNU General Public License v3.0
The Mingled Structured Predictor
License: GNU General Public License v3.0
Hi! Thank you for your code! I was trying to replicate your work in "An Empirical Investigation of Structured Output Modeling for Graph-based Neural Dependency Parsing". But after I prepared my own data, and made a running script as you suggested in "v1/docs/emp_graph.md", the program seemed unable to find the module "msp".
I also noticed that "v1/docs/run.md" says "the main dir zmsp should be in sys.path", but I can't figure out what that means.
Here's my script to run the project, and the error reported.
#!/usr/bin/env bash
# =====
# base options
base_opt="conf_output:_conf partype:graph init_from_pretrain:1 lrate.val:0.001 drop_embed:0.33 dropmd_embed:0.33 singleton_thr:2 fix_drop:1 max_epochs:300"
global_unproj_m="dec_algorithm:unproj output_normalizing:global"
# possible losses
prob_loss="loss_function:prob margin.init_val:0."
# =====
# specify paths
SRC_DIR=../v1/
method=${global_unproj_m}
loss=${prob_loss}
# further specify `train/dev/test/embed` paths
DATA_TRAIN="data/2.7UD_English-EWT/en_ewt-ud-train.conllu"
DATA_DEV="data/2.7UD_English-EWT/en_ewt-ud-dev.conllu"
DATA_TEST="data/2.7UD_English-EWT/en_ewt-ud-test.conllu"
DATA_EMBED="data/wiki.en.vec"
# =====
# running
# on GPU 0
CUDA_VISIBLE_DEVICES=0 PYTHONPATH=${SRC_DIR} python3 v1/tasks/cmd.py zdpar.main.train train:${DATA_TRAIN} dev:${DATA_DEV} test:${DATA_TEST} pretrain_file:${DATA_EMBED} device:0 ${base_opt} ${method} ${loss}
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.