Collocation Extraction
Collocation extraction finds word pairs or triples that occur next to each other more often than expected if words were independent, ranking them with association measures such as PMI, t-score, log-likelihood and logDice.
연어 추출은 이웃한 두(세) 낱말이 독립일 때 기대되는 것보다 자주 함께 나오는지를 PMI, t 점수, 우도비, logDice 로 재어 굳어진 표현을 찾는 분석입니다.
Which word combinations in my corpus are fixed expressions or strong collocations?
말뭉치에서 자주 붙어 다니는 낱말 조합(관용 표현)을 찾고 싶어요.
For each adjacent pair the observed frequency is compared with the frequency expected from the marginal frequencies of its first word (first two words for triples) and its last word, giving PMI, a t-score, a log-likelihood G² and logDice. PMI favours rare exclusive pairs, the t-score and G² favour frequent reliable pairs, and logDice is comparable across corpora of different sizes.
When to use Collocation Extraction
- You want to identify multi-word expressions, terminology or phrasal patterns.
- You build a phrase list before topic modelling or dictionary work.
- You compare how strongly words attract each other with several standard measures.
When to use something else
- You want associations between words anywhere in a document rather than adjacent ones; use a co-occurrence network instead.
- You want words that distinguish two corpora; use keyness analysis instead.
Assumptions and requirements
- Adjacent positions within a document form the sample of n-grams; punctuation is ignored.
- Counts are treated as independent, so p values from G² are optimistic.
- A minimum frequency is applied because PMI is unreliable for rare pairs.
What the analysis reports
- Ranked collocations with observed and expected frequency
- PMI, t-score, log-likelihood G² with p, and logDice
- Numbers of n-gram tokens, types and candidates
- Bar chart of the top collocations
How to report it
The strongest collocation was '[phrase]' (O = [value], E = [value], PMI = [value], t = [value], G² = [value], logDice = [value]).
Related methods
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with SciPy.
독립 계산. SciPy 대조 참조 시험 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 Collocation Extraction on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable
- Price
- 250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 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.