A Sequential Pattern Mining Framework