The toolkit of constructing graph for NLP tasks