EntityPairs_OneSentence: See if words from two lists co-exist within a sentence

View source: R/Basic_CleanUp.R

EntityPairs_OneSentenceR Documentation

See if words from two lists co-exist within a sentence

Description

See if words from two lists co-exist within a sentence. Eg site and tissue type. This function only looks in one sentence for the two terms. If you suspect the terms may occur in adjacent sentences then use the EntityPairs_TwoSentence function.

Usage

EntityPairs_OneSentence(inputText, list1, list2)

Arguments

inputText

The relevant pathology text column

list1

First list to refer to

list2

The second list to look for

See Also

Other Basic Column mutators: EntityPairs_TwoSentence(), ExtrapolatefromDictionary(), ListLookup(), MyImgLibrary()

Examples

# tbb<-EntityPairs_OneSentence(Mypath$Histology,HistolType(),LocationList())

sebastiz/EndoMineR documentation built on Dec. 4, 2022, 7:04 p.m.