source: trunk/gsdl/packages/kea/kea-3.0/Stopwords.java@ 8815

Last change on this file since 8815 was 8815, checked in by mdewsnip, 19 years ago

Kea 3.0, as downloaded from http://www.nzdl.org/kea but with CSTR_abstracts_test, CSTR_abstracts_train, Chinese_test, and Chinese_train directories removed.

  • Property svn:keywords set to Author Date Id Revision
File size: 1.2 KB
Line 
1/*
2 * Stopwords.java
3 * Copyright (C) 2001 Eibe Frank
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19
20import java.util.*;
21import java.io.*;
22
23/**
24 * Class that can test whether a given string is a stop word.
25 * Lowercases all words before the test.
26 *
27 * @author Eibe Frank ([email protected])
28 * @version 1.0
29 */
30public abstract class Stopwords implements Serializable {
31
32 /**
33 * Returns true if the given string is a stop word.
34 */
35 public abstract boolean isStopword(String str);
36}
37
38
Note: See TracBrowser for help on using the repository browser.