An Efficient Procedure for Characteristic mining of Mathematical Formulas from Document