A Unified Framework for Providing Recommendations in Social Tagging Systems Based on Ternary Semantic Analysis