A multimedia retrieval framework based on automatic graded relevance judgments