Causal relationship recognition algorithm based on external semantic and contextual structural features