| AdjectiveImpl.java |
1 /*
2 * AdjectiveImpl.java
3 *
4 * Copyright (c) 1998-2004, The University of Sheffield.
5 *
6 * This file is part of GATE (see http://gate.ac.uk/), and is free
7 * software, licenced under the GNU Library General Public License,
8 * Version 2, June 1991 (in the distribution as file licence.html,
9 * and also available at http://gate.ac.uk/gate/licence.html).
10 *
11 * Marin Dimitrov, 20/May/2002
12 *
13 * $Id: AdjectiveImpl.java,v 1.4 2004/07/21 17:10:10 akshay Exp $
14 */
15
16 package gate.wordnet;
17
18 import net.didion.jwnl.dictionary.Dictionary;
19
20 /** Represents WordNet adjective
21 * implements interface Adjective
22 */
23 public class AdjectiveImpl extends WordSenseImpl
24 implements Adjective {
25
26 private int adjPosition;
27
28 public AdjectiveImpl(Word _word,
29 Synset _synset,
30 int _senseNumber,
31 int _orderInSynset,
32 boolean _isSemcor,
33 int _adjPosition,
34 Dictionary _wnDict) {
35
36 super(_word,_synset,_senseNumber,_orderInSynset,_isSemcor, _wnDict);
37 this.adjPosition = _adjPosition;
38 }
39
40 /** returns the syntactic position of the adjective in relation to noun that it modifies */
41 public int getAdjectivePosition() {
42 return this.adjPosition;
43 }
44 }