lematiza: Basic single term Spanish stemmer using apicultur API.

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

View source: R/lematiza.R

Description

This function provides a basic single term stemmer for Spanish using apicultur's "LematizadorClasico" API (see references below). Given a term in Spanish, it returns a list of possible lemmas it may derive from.

Usage

1
lematiza(conexion, termino)

Arguments

conexion

apicultuR connexion string as created by the conexion.apicultur function

termino

a single term (character string) to be stemmed

Value

It returns a data frame with the following columns:

lema

lemma from which termino may derive

categoria

coded POS (part of speech) corresponding to the lemma

categoriaSimple

alternative coded categorization of POS

The correspondence of POS codes and their descriptions can be found at http://www.apicultur.com/codigos-de-categorias-gramaticales/.

Author(s)

Carlos J. Gil Bellosta

References

http://www.apicultur.com/lematizadorclasico-documentacion/

See Also

conexion.apicultur

Examples

1
2
3
4
5
6
7
  ## Not run: 

apicultur <- conexion.apicultur("8FRk...oa")
lematiza(apicultur, "casas")

  
## End(Not run)

apicultuR documentation built on May 2, 2019, 4:52 p.m.