1+ import java .util .Vector ;
2+
3+ /******************************
4+ * Copyright (c) 2003-2023 Kevin Lano
5+ * This program and the accompanying materials are made available under the
6+ * terms of the Eclipse Public License 2.0 which is available at
7+ * http://www.eclipse.org/legal/epl-2.0
8+ *
9+ * SPDX-License-Identifier: EPL-2.0
10+ * *****************************/
11+ /* package: Requirements Formalisation */
12+
13+ /* Superclass of NLPWord and NLPPhrase */
14+
15+ public abstract class NLPPhraseElement
16+ { String tag = "" ;
17+ NLPSentence sentence = null ;
18+
19+ public void setSentence (NLPSentence sx )
20+ { sentence = sx ; }
21+
22+ public abstract void linkToPhrases (NLPSentence s );
23+
24+ public abstract String literalForm ();
25+
26+ public abstract boolean isVerbPhrase ();
27+
28+ public NLPPhraseElement (String tg )
29+ { tag = tg ; }
30+
31+ public abstract boolean isInputPhrase ();
32+
33+ public abstract boolean isOutputPhrase ();
34+
35+ public abstract String formQualifier ();
36+
37+ public abstract int indexing (int st );
38+
39+ public abstract Vector sequentialise ();
40+
41+ public abstract java .util .HashMap classifyWords (Vector background , Vector modelElements );
42+
43+ public abstract java .util .HashMap classifyVerbs (Vector verbs );
44+
45+ public abstract Vector extractVerbedNouns (java .util .Map quals , java .util .Map types , java .util .Map fromBackground , Vector currentQuals );
46+
47+ public abstract Vector extractNouns (java .util .Map quals , java .util .Map types , java .util .Map fromBackground , Vector currentQuals );
48+
49+ public abstract String getPrincipalNoun ();
50+
51+ public abstract NLPWord identifyNounForEntity ();
52+
53+ public abstract String getMostSignificantVerb ();
54+
55+ public abstract void extractAssociationDefinitions (Entity ex ,String nme ,java .util .Map mp ,Vector modelems );
56+
57+ public abstract void extractRelationshipDefinitions (Entity ent , Vector modelElements );
58+
59+ }
0 commit comments