Skip to content

Methods · Machine learning · Sequence labelling

Linear-Chain Conditional Random Field for Sequence Labelling

A linear-chain conditional random field assigns a label to every element of a sequence (for example each word in a sentence or each day in a record) while scoring both how well each label fits its element's features and how plausible each label is after the previous one. The model is fitted by penalised maximum likelihood and the best label sequence is found with the Viterbi algorithm.

순서가 있는 자료의 각 원소(문장의 단어, 기록의 날짜 등)에 이름표를 붙이는 모형으로, 각 원소의 특성과 이름표가 얼마나 맞는지와 앞 이름표 다음에 어떤 이름표가 오기 쉬운지를 함께 점수로 매깁니다. 벌점을 준 최대우도로 적합하고 비터비 알고리즘으로 가장 그럴듯한 이름표 순서를 찾습니다.

Can I label every step of my sequences from their features, using the fact that neighbouring labels depend on each other?

이웃한 이름표끼리 서로 관련이 있다는 점을 이용해 순서열의 각 단계를 특성으로부터 분류할 수 있습니까?

The method reports token accuracy, per-label precision, recall and F1, and exact-sequence accuracy on held-out sequences, compared with the same model without label-to-label transitions. Large transition weights show which label changes are common or rare.

When to use Linear-Chain Conditional Random Field for Sequence Labelling

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

A linear-chain conditional random field (L2 penalty c2 = [value]) labelled held-out tokens with accuracy [value] (macro F1 = [value]), compared with [value] for the same model without transition weights.

Related methods

How this method is validated

이 방법의 검증 근거

  • Independent computation. 1 reference test compares the results with scikit-learn and direct computations (formulas, enumeration or simulation).

    독립 계산. scikit-learn·직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과.

Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.

허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.

Run Linear-Chain Conditional Random Field for Sequence Labelling on Quorant

Data you need
a table (CSV or Excel) with an outcome variable, predictor (feature) columns and a unit (entity) ID
Price
600 credits for one analysis up to 10,000 rows (complexity level 4); larger or wider data costs more. Optional methodologist review: 2400 credits.
Checking
Compared with independent computations
Before you pay
A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.

Method ID Q71061 · Reviewed 2026-10-25