https://5dok.net/document/zlgjoolr-structured-prediction-natural-processing-constraint-satisfaction-approach.html