Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

text::english(3pm) [debian man page]

Text::English(3pm)					User Contributed Perl Documentation					Text::English(3pm)

NAME
Text::English - Porter's stemming algorithm SYNOPSIS
use Text::English; @stems = Text::English::stem( @words ); DESCRIPTION
This routine applies the Porter Stemming Algorithm to its parameters, returning the stemmed words. It is derived from the C program "stemmer.c" as found in freewais and elsewhere, which contains these notes: Purpose: Implementation of the Porter stemming algorithm documented in: Porter, M.F., "An Algorithm For Suffix Stripping," Program 14(3), July 1980, pp. 130-137. Provenance: Written by B. Frakes and C. Cox, 1986. I have re-interpreted areas that use Frakes and Cox's "WordSize" function. My version may misbehave on short words starting with "y", but I can't think of any examples. The step numbers correspond to Frakes and Cox, and are probably in Porter's article (which I've not seen). Porter's algorithm still has rough spots (e.g current/currency, -ings words), which I've not attempted to cure, although I have added support for the British -ise suffix. NOTES
This is version 0.1. I would welcome feedback, especially improvements to the punctuation-stripping step. AUTHOR
Ian Phillipps <ian@unipalm.pipex.com> COPYRIGHT
Copyright Public IP Exchange Ltd (PIPEX). Available for use under the same terms as perl. perl v5.14.2 2005-04-10 Text::English(3pm)

Check Out this Related Man Page

Plucene::Analysis::PorterStemFilter(3pm)		User Contributed Perl Documentation		  Plucene::Analysis::PorterStemFilter(3pm)

NAME
Plucene::Analysis::PorterStemFilter - Porter stemming on the token stream SYNOPSIS
# isa Plucene::Analysis:::TokenFilter my $token = $porter_stem_filter->next; DESCRIPTION
This class transforms the token stream as per the Porter stemming algorithm. Note: the input to the stemming filter must already be in lower case, so you will need to use LowerCaseFilter or LowerCaseTokenizer farther down the Tokenizer chain in order for this to work properly! The Porter Stemmer implements Porter Algorithm for normalization of English words by stripping their extensions and is used to generalize the searches. For example, the Porter algorithm maps both 'search' and 'searching' (as well as 'searchnessing') to 'search' such that a query for 'search' will also match documents that contains the word 'searching'. Note that the Porter algorithm is specific to the English language and may give unpredictable results for other languages. Also, make sure to use the same analyzer during the indexing and the searching. You can find more information on the Porter algorithm at www.tartarus.org/~martin/PorterStemmer. A nice online demonstration of the Porter algorithm is available at www.scs.carleton.ca/~dquesnel/java/stuff/PorterApplet.html. METHODS
next my $token = $porter_stem_filter->next; Returns the next input token, after being stemmed. perl v5.12.4 2011-08-14 Plucene::Analysis::PorterStemFilter(3pm)
Man Page

7 More Discussions You Might Find Interesting

1. What is on Your Mind?

How can I get some interesting books?

I am not a native English speaker. I wanna improve my English. But I am kind of lazy, so I decide to pratice my English by reading English novel. I'd like read books about magic or superman and so on. How can I get that kind of books from Internet? I'll really appreciate it!! (4 Replies)
Discussion started by: virmin
4 Replies

2. UNIX for Advanced & Expert Users

Türkler bi baksın

beyler bn oyuna yeni başlıyacamda bana bi yardım etseniz oyun indirilecek oyun mu acc nerden alcam oyunu nerden indirecem Moderator note: The Rules of this forum state that only English can be used. (0 Replies)
Discussion started by: kaan07
0 Replies

3. Linux

LANG=C not English?

(4 Replies)
Discussion started by: dotancohen
4 Replies

4. Shell Programming and Scripting

Text search

Hello all, I want to find all the words that comes after certain words, I need to do that in order to process some log files for example Suppose that, I have this text Hello, I am from country_A, I am living in country_B. Now, I want to get all the word coming after (from and in). In... (7 Replies)
Discussion started by: fdc2suxs
7 Replies

5. UNIX for Dummies Questions & Answers

Text analysis

Hey Guys, Does anyone know how to count the separate amount of words in a text file? e.g the 5 and 20 Furthermore does anyone know how to convert whole numbers in decimals? Thanks (24 Replies)
Discussion started by: John0101
24 Replies

6. Shell Programming and Scripting

Extracting Words from Text

Hi there, Unix Gurus Back in September last year you helped me find a way to extract the words in brackets in a textfile to a new one. In that case my textfile was made up of sentences containing an only bracketed word per sentence/line: 1. If the boss's son had been , someone would... (9 Replies)
Discussion started by: eldeingles
9 Replies

7. What is on Your Mind?

Place your bits - Who will be crowned English Premier League champions for the 2013-14 Season

Hi All, UPDATE: This has been cancelled. No more Event Prediction. Place your bits here before 30th March 2014. Who will be crowned English Premier League champions for the 2013-14 Season Tottenham Hotspur Manchester City Chelsea Liverpool Arsenal Everton Manchester United... (0 Replies)
Discussion started by: ni2
0 Replies