Spotting at 31 weeks 5 days...HELP

I went to the doctor about a week ago and she said my cervix was soft and thin, I started spitting bright red today.. What does it mean and what should I do?