headingSim: Similarity between headings

Description Usage Arguments Details Value Examples

View source: R/node.R

Description

Calculate similarity between two headings.

Usage

1
    headingSim(heading1, heading2, method="SP", frame="node", env=NULL)

Arguments

heading1, heading2

two headings or two lists of headings

method

similarity measurment method, see Details for available methods.

frame

available options are node and heading, decide whether using node-based or heading-based methods.

env

the dataset to use.

Details

Available methods: SP: Shortest Path method, WL: Weighted Link method, WP: Wu and Palmer's method, LC: Leacock and Chodorow's method, Li: Li's method, Lord: Lord's method, Resnik: Resnik's method, Lin: Lin's method, JC: Jiang and Conrath's method.

Value

Semantic similarity between two MeSH headings, whose value is between 0 and 1.

Examples

1
    headingSim("Lumbosacral Region", "Body Regions")

MeSHSim documentation built on May 31, 2017, 11:32 a.m.