I've been following the sklearn-crfsuite
tutorial.
The sample of features used to train the CRF model is shown below.
{'+1:postag': 'Fpa',
'+1:postag[:2]': 'Fp',
'+1:word.istitle()': False,
'+1:word.isupper()': False,
'+1:word.lower()': '(',
'BOS': True,
'bias': 1.0,
'postag': 'NP',
'postag[:2]': 'NP',
'word.isdigit()': False,
'word.istitle()': True,
'word.isupper()': False,
'word.lower()': 'melbourne',
'word[-2:]': 'ne',
'word[-3:]': 'rne'}
How does sklearn-crfsuite
convert strings like melbourne
to floats, since the features for CRFs should be only floats. There is no mention of this anywhere in the documentation.