remove.punct: Tokenizing and Removing Punctuation Marks

Description Usage Arguments Details Value Author(s) Examples

View source: R/remove.punct.R

Description

It splits a given text into separated words and removes its punctuation marks.

Usage

1

Arguments

text

an object.

Details

This function also considers numbers as a separated word.

Note that This function removes "dot"" only if it is at the end of the sentence, separately. Meanwhile, it does not eliminate dash and hyper.Because it is assumed that words containing these punctuations are one word.

Value

A vector of character string.

Author(s)

Neda Daneshgar and Majid Sarmad

Examples

1
2
x = "This is an  example-based MT!"  
remove.punct (x)

word.alignment documentation built on May 1, 2019, 10:21 p.m.