Structural and semantic similarity metrics for chemical compound classification