Run, if possible. Fight, preferably, yes, with weapons, if necessary. This is not a hypothetical for me, I've been in that situation.
When you sparred in class, was it padded full contact?
I ask because when, years ago, I looked at Karate classes, they were making the moves short of contact for points, and that is a very bad way to teach the muscle memory of non contact and follow through for proper assesment of your true effect. I should add that hitting is the easy part, taking hits is the seperation.
So I choose Muay Thai, after and still actively boxing.
Agreed there is a large element of Gansta Wannabee types, psuedo toughs with gats, there's also a fair number of street fighters who can punch and wrestle. I'm of the latter, I'm more concerned with offense than defense when the situation warrants.
Bio,
It's a fight. Maybe if one is trained from birth to be a warrior like the Samurai or Ninja one can maintain calm sanctity and the mediative mindset in one, for the rest of us mere mortals,it's measured predatory rage.