getIndexTerms: Get Index Terms

Description Usage Arguments Value Author(s) References Examples

View source: R/dictionary.R

Description

Get index terms from a WordNet dictionary as specified by a filter.

Usage

1
getIndexTerms(pos, maxLimit, filter)

Arguments

pos

Part of speech type. Must be either "ADJECTIVE", "ADVERB", "NOUN", or "VERB".

maxLimit

Maximum number of results.

filter

A term filter (see getTermFilter).

Value

A list of index terms.

Author(s)

Ingo Feinerer

References

M. Wallace (2007). Jawbone Java WordNet API. http://mfwallace.googlepages.com/jawbone

Examples

1
2
3
4
if(initDict()) {
  filter <- getTermFilter("StartsWithFilter", "car", TRUE)
  getIndexTerms("NOUN", 5, filter)
}

Example output

OpenJDK 64-Bit Server VM warning: Can't detect initial thread stack location - find_vma failed
File Not Found: /usr/share/wordnet/index.noun (Permission denied)
NULL
Warning message:
system call failed: Cannot allocate memory 

wordnet documentation built on Nov. 26, 2017, 5:06 p.m.