Skip to content

Commit d856fe7

Browse files
authored
Add files via upload
1 parent 096e480 commit d856fe7

File tree

91 files changed

+18102
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+18102
-0
lines changed

version24/NLPPhrase.class

24.3 KB
Binary file not shown.

version24/NLPPhrase.java

Lines changed: 1377 additions & 0 deletions
Large diffs are not rendered by default.

version24/NLPPhraseElement.class

1.22 KB
Binary file not shown.

version24/NLPPhraseElement.java

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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+
}

version24/NLPSentence.class

37.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)