Determining the specificity of terms using inside-outside information: a necessary condition of term hierarchy mining