Conditional random fields (CRFs) are a class of statistical modeling methods often applied in pattern recognition and machine learning and used for structured prediction. Whereas a classifier predicts a label for a single sample without considering "neighbouring" samples, a CRF can take context into account.
CRFs, which are used for structured prediction, contrast with classifiers that focus on individual samples without considering their context.