|
VerbImpl |
|
1 /* 2 * VerbImpl.java 3 * 4 * Copyright (c) 1998-2002, 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: VerbImpl.java,v 1.4 2002/05/30 13:34:11 marin Exp $ 14 */ 15 16 package gate.wordnet; 17 18 import java.util.*; 19 20 import junit.framework.*; 21 import net.didion.jwnl.dictionary.Dictionary; 22 23 /** Represents WordNet verb. 24 */ 25 public class VerbImpl extends WordSenseImpl 26 implements Verb { 27 28 private ArrayList verbFrames; 29 30 public VerbImpl(Word _word, 31 Synset _synset, 32 int _senseNumber, 33 int _orderInSynset, 34 boolean _isSemcor, 35 net.didion.jwnl.data.Verb _jwVerb, 36 Dictionary _wnDict) { 37 38 super(_word,_synset,_senseNumber,_orderInSynset,_isSemcor, _wnDict); 39 40 Assert.assertNotNull(_jwVerb); 41 42 String[] jwFrames = _jwVerb.getVerbFrames(); 43 this.verbFrames = new ArrayList(jwFrames.length); 44 45 for (int i= 0; i< jwFrames.length; i++) { 46 this.verbFrames.add(new VerbFrameImpl(jwFrames[i])); 47 } 48 } 49 50 /** returns the verb frames associated with this synset */ 51 public List getVerbFrames() { 52 return this.verbFrames; 53 } 54 }
|
VerbImpl |
|