scrapinghub / python-crfsuite

A python binding for crfsuite
MIT License
770 stars 222 forks source link

using ":" in feature safe? #74

Open tisdall opened 6 years ago

tisdall commented 6 years ago

I was reading the csrfsuite docs how the ":" is used to define weight on features and that it should be escaped in the feature otherwise. I was looking through the code and I can't see where the ":" is being escaped (or "\") if it's within the feature. I noticed the example is using ":" within the feature and I assume that's working so is it safe to use a ":" within a feature without escaping it? What am I missing?