See the tutorials for the C++ version of DyNet
Guided examples in Python can be found below :
A more comprehensive tutorial can be found here (EMNLP 2016 tutorial).