Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/emilhvitfeldt/wordsalad

Provide Tools to Extract and Analyze Word Vectors
https://github.com/emilhvitfeldt/wordsalad

Last synced: about 2 months ago
JSON representation

Provide Tools to Extract and Analyze Word Vectors

Awesome Lists containing this project

README

        

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```

# wordsalad

[![R build status](https://github.com/EmilHvitfeldt/wordsalad/workflows/R-CMD-check/badge.svg)](https://github.com/EmilHvitfeldt/wordsalad/actions)
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)

The goal of wordsalad is to provide a unified interface for word embedding methods to produce word vectors. wordsalad doesn't provide the implementation of these methods, only a unified interface. For more information on the specific method please refer to the documentation.

Goals of this package are:

- Allow the specification of tokenizer used
- Streamline argument names and order
- Consistent output formats
- Avoid the need for creating temporary files

## Installation

You can install the released version of wordsalad from [CRAN](https://CRAN.R-project.org) with:

```{r, eval=FALSE}
install.packages("wordsalad")
```

If you want the development version instead then install directly from GitHub:

```{r, eval=FALSE}
# install.packages("devtools")
devtools::install_github("EmilHvitfeldt/wordsalad")
```

## Example

```{r, message=FALSE}
library(wordsalad)

glove(fairy_tales)
```

## Code of Conduct

Please note that the wordsalad project is released with a [Contributor Code of Conduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.