plausibility: Compute word (or compound) plausibility

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Gives measures of semantic transparency (plausibility) for words or compounds

Usage

1
plausibility(x,method, n=10,stem,tvectors=tvectors,breakdown=TRUE)

Arguments

x

a character vector of length(x) = 1 or a numeric of length=ncol(tvectors) vector with same dimensionality as LSA space

method

the measure of semantic transparency, can be one of n_density,length, proximity, or entropy (see Details)

n

the number of neighbors for the n_density method

stem

the stem (or word) of comparison for the proximity method

tvectors

the semantic space in which the computation is to be done (a numeric matrix where every row is a word vector)

breakdown

if TRUE, the function breakdown is applied to the input

Details

The format of x should be of the kind x <- "word1 word2 word3" instead of
x <- c("word1", "word2", "word3") if phrases of more than one word are used as input. Simple vector addition of the constituent vectors is then used to compute the phrase vector.
Since x can also be chosen to be any vector of the active LSA Space, this function can be combined with compose() to compute semantic transparency measures of complex expressions (see examples). Since semantic transparency methods were developed as measures for composed vectors, applying them makes most sense for those.

The methods are defined as follows:

Value

The semantic transparency as a numeric

Author(s)

Fritz G?nther

References

Lazaridou, A., Vecchi, E., & Baroni, M. (2013). Fish transporters and miracle homes: How compositional distributional semantics can help NP parsing. In Proceedings of EMNLP 2013 (pp. 1908 - 1913). Seattle, WA.

Marelli, M., & Baroni, M. (in press). Affixation in semantic space: Modeling morpheme meanings with compositional distributional semantics. Psychological Review.

Vecchi, E. M., Baroni, M., & Zamparelli, R. (2011). (Linear) maps of the impossible: Capturing semantic anomalies in distributional space. In Proceedings of the ACL Workshop on Distributional Semantics and Compositionality (pp. 1-9). Portland, OR.

See Also

Cosine, neighbors, compose

Examples

1
2
3
4
5
6
data(wonderland)

plausibility("cheshire cat",method="n_density",n=10,tvectors=wonderland) 

plausibility(compose("mad","hatter",method="Multiply",tvectors=wonderland),
method="proximity",stem="hatter",tvectors=wonderland)

codymarquart/LSAfun2 documentation built on May 13, 2019, 8:48 p.m.