lemma_file: Lemma File

Description Usage Arguments Value Examples

Description

System call to tree-tagger binary to lemmatize file based on our tokenization. Give input filename and outputfilename, the function will handle creating temporary files, and the pre and post processing of the tree-tagger lemmatization necessary.

Usage

1
2
lemma_file(ifile, odir, cmd = "/opt/tree-tagger/bin/tree-tagger",
  param = "/opt/tree-tagger/lib/english.par")

Arguments

ifile

A string containing the path to the input file.

odir

A string containign the path to the output file.

cmd

**optional** path to the tree taggery binary on your system.

param

**optional** path to the param file to use.

Value

A string containing the name of the file that was lemmatized.

Examples

1
2
3
4
5
## Not run: 
lemma_file("ifile.txt", "ofile.txt")
lemma_file("ifile.txt", "ofile.txt", cmd="~/tt/bin/tree-tagger", param="~/tt/lib/english.par")

## End(Not run)

avkoehl/textprocessingDSI documentation built on June 5, 2019, 7:41 p.m.