Inverse Document Frequency

Keyword Analysis with PostgreSQL: Cosine and Linear Correlation Algorithms for Text Analysis

This article describes the application of PostgreSQL along with algorithms to extract keywords from a document for text (keyword) analysis.

Term Frequency Statistics in PostgreSQL Full-Text Searches

This article discusses how you can use PostgreSQL along with ts_stat or MADlib for term frequency and Inverse document frequency analysis.