Multi-task graph-based information extraction with global context