Global thread-level inference for comment classification in community question answering