Distributional Memory: A General Framework for Corpus-Based Semantics