docSim: Similarity between articles

Description Usage Arguments Details Value Note Examples

View source: R/pmid.R

Description

Calculate the similarity between two articles.

Usage

1
    docSim(pmid1, pmid2, method="SP", frame="node", major=FALSE, env=NULL)

Arguments

pmid1, pmid2

pmids of two articles whose similarity is needed to be calculated.

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.

major

whether the calculation should only be based on major terms

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 MEDLINE documents, whose value is between 0 and 1.

Note

Network connection is required for using this function.

Examples

1
    docSim("1111113","1111111")

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