nlptoolkit-framenet 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Frame.js +68 -82
- package/dist/Frame.js.map +1 -1
- package/dist/FrameElement.js +67 -81
- package/dist/FrameElement.js.map +1 -1
- package/dist/FrameElementList.js +103 -117
- package/dist/FrameElementList.js.map +1 -1
- package/dist/FrameNet.js +68 -82
- package/dist/FrameNet.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/package.json +5 -4
- package/source/index.ts +4 -0
- package/source/tsconfig.json +2 -2
- package/tsconfig.json +1 -2
- package/index.js +0 -4
package/dist/Frame.js
CHANGED
|
@@ -1,86 +1,72 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export class Frame {
|
|
2
|
+
/**
|
|
3
|
+
* Constructor of {@link Frame} class which takes inputStream as input and reads the frame
|
|
4
|
+
*
|
|
5
|
+
* @param name Name of the frame
|
|
6
|
+
*/
|
|
7
|
+
constructor(name) {
|
|
8
|
+
this.name = name;
|
|
9
|
+
this.lexicalUnits = [];
|
|
10
|
+
this.frameElements = [];
|
|
5
11
|
}
|
|
6
|
-
|
|
7
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Adds a new lexical unit to the current frame
|
|
14
|
+
* @param lexicalUnit Lexical unit to be added
|
|
15
|
+
*/
|
|
16
|
+
addLexicalUnit(lexicalUnit) {
|
|
17
|
+
this.lexicalUnits.push(lexicalUnit);
|
|
8
18
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
* Constructor of {@link Frame} class which takes inputStream as input and reads the frame
|
|
16
|
-
*
|
|
17
|
-
* @param name Name of the frame
|
|
18
|
-
*/
|
|
19
|
-
constructor(name) {
|
|
20
|
-
this.name = name;
|
|
21
|
-
this.lexicalUnits = [];
|
|
22
|
-
this.frameElements = [];
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Adds a new lexical unit to the current frame
|
|
26
|
-
* @param lexicalUnit Lexical unit to be added
|
|
27
|
-
*/
|
|
28
|
-
addLexicalUnit(lexicalUnit) {
|
|
29
|
-
this.lexicalUnits.push(lexicalUnit);
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Adds a new frame element to the current frame
|
|
33
|
-
* @param frameElement Frame element to be added
|
|
34
|
-
*/
|
|
35
|
-
addFrameElement(frameElement) {
|
|
36
|
-
this.frameElements.push(frameElement);
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Checks if the given lexical unit exists in the current frame
|
|
40
|
-
* @param lexicalUnit Lexical unit to be searched.
|
|
41
|
-
* @return True if the lexical unit exists, false otherwise.
|
|
42
|
-
*/
|
|
43
|
-
lexicalUnitExists(lexicalUnit) {
|
|
44
|
-
return this.lexicalUnits.includes(lexicalUnit);
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Accessor for a given index in the lexicalUnit array.
|
|
48
|
-
* @param index Index of the lexical unit
|
|
49
|
-
* @return The lexical unit at position index in the lexicalUnit array
|
|
50
|
-
*/
|
|
51
|
-
getLexicalUnit(index) {
|
|
52
|
-
return this.lexicalUnits[index];
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Accessor for a given index in the frameElements array.
|
|
56
|
-
* @param index Index of the frame element
|
|
57
|
-
* @return The frame element at position index in the frameElements array
|
|
58
|
-
*/
|
|
59
|
-
getFrameElement(index) {
|
|
60
|
-
return this.frameElements[index];
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Returns number of lexical units in the current frame
|
|
64
|
-
* @return Number of lexical units in the current frame
|
|
65
|
-
*/
|
|
66
|
-
lexicalUnitSize() {
|
|
67
|
-
return this.lexicalUnits.length;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Returns number of frame elements in the current frame
|
|
71
|
-
* @return Number of frame elements in the current frame
|
|
72
|
-
*/
|
|
73
|
-
frameElementSize() {
|
|
74
|
-
return this.frameElements.length;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Accessor for the name of the frame
|
|
78
|
-
* @return Name of the frame
|
|
79
|
-
*/
|
|
80
|
-
getName() {
|
|
81
|
-
return this.name;
|
|
82
|
-
}
|
|
19
|
+
/**
|
|
20
|
+
* Adds a new frame element to the current frame
|
|
21
|
+
* @param frameElement Frame element to be added
|
|
22
|
+
*/
|
|
23
|
+
addFrameElement(frameElement) {
|
|
24
|
+
this.frameElements.push(frameElement);
|
|
83
25
|
}
|
|
84
|
-
|
|
85
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Checks if the given lexical unit exists in the current frame
|
|
28
|
+
* @param lexicalUnit Lexical unit to be searched.
|
|
29
|
+
* @return True if the lexical unit exists, false otherwise.
|
|
30
|
+
*/
|
|
31
|
+
lexicalUnitExists(lexicalUnit) {
|
|
32
|
+
return this.lexicalUnits.includes(lexicalUnit);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Accessor for a given index in the lexicalUnit array.
|
|
36
|
+
* @param index Index of the lexical unit
|
|
37
|
+
* @return The lexical unit at position index in the lexicalUnit array
|
|
38
|
+
*/
|
|
39
|
+
getLexicalUnit(index) {
|
|
40
|
+
return this.lexicalUnits[index];
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Accessor for a given index in the frameElements array.
|
|
44
|
+
* @param index Index of the frame element
|
|
45
|
+
* @return The frame element at position index in the frameElements array
|
|
46
|
+
*/
|
|
47
|
+
getFrameElement(index) {
|
|
48
|
+
return this.frameElements[index];
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Returns number of lexical units in the current frame
|
|
52
|
+
* @return Number of lexical units in the current frame
|
|
53
|
+
*/
|
|
54
|
+
lexicalUnitSize() {
|
|
55
|
+
return this.lexicalUnits.length;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Returns number of frame elements in the current frame
|
|
59
|
+
* @return Number of frame elements in the current frame
|
|
60
|
+
*/
|
|
61
|
+
frameElementSize() {
|
|
62
|
+
return this.frameElements.length;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Accessor for the name of the frame
|
|
66
|
+
* @return Name of the frame
|
|
67
|
+
*/
|
|
68
|
+
getName() {
|
|
69
|
+
return this.name;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
86
72
|
//# sourceMappingURL=Frame.js.map
|
package/dist/Frame.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Frame.js","sourceRoot":"","sources":["../source/Frame.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Frame.js","sourceRoot":"","sources":["../source/Frame.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,KAAK;IAMd;;;;OAIG;IACH,YAAY,IAAY;QACpB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,IAAI,CAAC,YAAY,GAAG,EAAE,CAAA;QACtB,IAAI,CAAC,aAAa,GAAG,EAAE,CAAA;IAC3B,CAAC;IAED;;;OAGG;IACH,cAAc,CAAC,WAAmB;QAC9B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;IACvC,CAAC;IAED;;;OAGG;IACH,eAAe,CAAC,YAAoB;QAChC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA;IACzC,CAAC;IAED;;;;OAIG;IACH,iBAAiB,CAAC,WAAmB;QACjC,OAAO,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAA;IAClD,CAAC;IAED;;;;OAIG;IACH,cAAc,CAAC,KAAa;QACxB,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAA;IACnC,CAAC;IAED;;;;OAIG;IACH,eAAe,CAAC,KAAa;QACzB,OAAO,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAA;IACpC,CAAC;IAED;;;OAGG;IACH,eAAe;QACX,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,CAAA;IACnC,CAAC;IAED;;;OAGG;IACH,gBAAgB;QACZ,OAAO,IAAI,CAAC,aAAa,CAAC,MAAM,CAAA;IACpC,CAAC;IAED;;;OAGG;IACH,OAAO;QACH,OAAO,IAAI,CAAC,IAAI,CAAA;IACpB,CAAC;CACJ"}
|
package/dist/FrameElement.js
CHANGED
|
@@ -1,90 +1,76 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
* constructor return a NONE type frameElement.
|
|
18
|
-
*
|
|
19
|
-
* @param frameElement Argument string containing the argumentType and id
|
|
20
|
-
* @param frame Frame of the frameElement
|
|
21
|
-
* @param id Id of the frameElement
|
|
22
|
-
*/
|
|
23
|
-
constructor(frameElement, frame, id) {
|
|
24
|
-
if (frame == undefined) {
|
|
25
|
-
if (frameElement.includes("$")) {
|
|
26
|
-
this.frameElementType = frameElement.substr(0, frameElement.indexOf("$"));
|
|
27
|
-
this.frame = frameElement.substring(frameElement.indexOf("$") + 1, frameElement.lastIndexOf("$"));
|
|
28
|
-
this.id = frameElement.substring(frameElement.lastIndexOf("$") + 1);
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
this.frameElementType = "NONE";
|
|
32
|
-
}
|
|
1
|
+
export class FrameElement {
|
|
2
|
+
/**
|
|
3
|
+
* A constructor of {@link FrameElement} class which takes frameElement string which is in the form of frameElementType$id
|
|
4
|
+
* and parses this string into frameElementType and id. If the frameElement string does not contain '$' then the
|
|
5
|
+
* constructor return a NONE type frameElement.
|
|
6
|
+
*
|
|
7
|
+
* @param frameElement Argument string containing the argumentType and id
|
|
8
|
+
* @param frame Frame of the frameElement
|
|
9
|
+
* @param id Id of the frameElement
|
|
10
|
+
*/
|
|
11
|
+
constructor(frameElement, frame, id) {
|
|
12
|
+
if (frame == undefined) {
|
|
13
|
+
if (frameElement.includes("$")) {
|
|
14
|
+
this.frameElementType = frameElement.substr(0, frameElement.indexOf("$"));
|
|
15
|
+
this.frame = frameElement.substring(frameElement.indexOf("$") + 1, frameElement.lastIndexOf("$"));
|
|
16
|
+
this.id = frameElement.substring(frameElement.lastIndexOf("$") + 1);
|
|
33
17
|
}
|
|
34
18
|
else {
|
|
35
|
-
this.frameElementType =
|
|
36
|
-
this.frame = frame;
|
|
37
|
-
this.id = id;
|
|
19
|
+
this.frameElementType = "NONE";
|
|
38
20
|
}
|
|
39
21
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
* @return frameElementType.
|
|
44
|
-
*/
|
|
45
|
-
getFrameElementType() {
|
|
46
|
-
return this.frameElementType;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Accessor for frame.
|
|
50
|
-
*
|
|
51
|
-
* @return frame.
|
|
52
|
-
*/
|
|
53
|
-
getFrame() {
|
|
54
|
-
return this.frame;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Accessor for id.
|
|
58
|
-
*
|
|
59
|
-
* @return id.
|
|
60
|
-
*/
|
|
61
|
-
getId() {
|
|
62
|
-
return this.id;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Mutator for id.
|
|
66
|
-
*
|
|
67
|
-
* @param id New id.
|
|
68
|
-
* @return id.
|
|
69
|
-
*/
|
|
70
|
-
setId(id) {
|
|
22
|
+
else {
|
|
23
|
+
this.frameElementType = frameElement;
|
|
24
|
+
this.frame = frame;
|
|
71
25
|
this.id = id;
|
|
72
26
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Accessor for frameElementType.
|
|
30
|
+
*
|
|
31
|
+
* @return frameElementType.
|
|
32
|
+
*/
|
|
33
|
+
getFrameElementType() {
|
|
34
|
+
return this.frameElementType;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Accessor for frame.
|
|
38
|
+
*
|
|
39
|
+
* @return frame.
|
|
40
|
+
*/
|
|
41
|
+
getFrame() {
|
|
42
|
+
return this.frame;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Accessor for id.
|
|
46
|
+
*
|
|
47
|
+
* @return id.
|
|
48
|
+
*/
|
|
49
|
+
getId() {
|
|
50
|
+
return this.id;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Mutator for id.
|
|
54
|
+
*
|
|
55
|
+
* @param id New id.
|
|
56
|
+
* @return id.
|
|
57
|
+
*/
|
|
58
|
+
setId(id) {
|
|
59
|
+
this.id = id;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* toString converts an {@link FrameElement} to a string. If the frameElementType is "NONE" returns only "NONE", otherwise
|
|
63
|
+
* it returns argument string which is in the form of frameElementType$id
|
|
64
|
+
*
|
|
65
|
+
* @return string form of frameElement
|
|
66
|
+
*/
|
|
67
|
+
toString() {
|
|
68
|
+
if (this.frameElementType == "NONE") {
|
|
69
|
+
return this.frameElementType;
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
return this.frameElementType + "$" + this.frame + "$" + this.id;
|
|
86
73
|
}
|
|
87
74
|
}
|
|
88
|
-
|
|
89
|
-
});
|
|
75
|
+
}
|
|
90
76
|
//# sourceMappingURL=FrameElement.js.map
|
package/dist/FrameElement.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FrameElement.js","sourceRoot":"","sources":["../source/FrameElement.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FrameElement.js","sourceRoot":"","sources":["../source/FrameElement.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,YAAY;IAMrB;;;;;;;;OAQG;IACH,YAAY,YAAoB,EAAE,KAAc,EAAE,EAAW;QACzD,IAAI,KAAK,IAAI,SAAS,EAAC;YACnB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAC;gBAC3B,IAAI,CAAC,gBAAgB,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAA;gBACzE,IAAI,CAAC,KAAK,GAAG,YAAY,CAAC,SAAS,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;gBACjG,IAAI,CAAC,EAAE,GAAG,YAAY,CAAC,SAAS,CAAC,YAAY,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAA;aACtE;iBAAM;gBACH,IAAI,CAAC,gBAAgB,GAAG,MAAM,CAAA;aACjC;SACJ;aAAM;YACH,IAAI,CAAC,gBAAgB,GAAG,YAAY,CAAA;YACpC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;YAClB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAA;SACf;IACL,CAAC;IAED;;;;OAIG;IACH,mBAAmB;QACf,OAAO,IAAI,CAAC,gBAAgB,CAAA;IAChC,CAAC;IAED;;;;OAIG;IACH,QAAQ;QACJ,OAAO,IAAI,CAAC,KAAK,CAAA;IACrB,CAAC;IAED;;;;OAIG;IACH,KAAK;QACD,OAAO,IAAI,CAAC,EAAE,CAAA;IAClB,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,EAAU;QACZ,IAAI,CAAC,EAAE,GAAG,EAAE,CAAA;IAChB,CAAC;IAED;;;;;OAKG;IACH,QAAQ;QACJ,IAAI,IAAI,CAAC,gBAAgB,IAAI,MAAM,EAAC;YAChC,OAAO,IAAI,CAAC,gBAAgB,CAAA;SAC/B;aAAM;YACH,OAAO,IAAI,CAAC,gBAAgB,GAAG,GAAG,GAAG,IAAI,CAAC,KAAK,GAAG,GAAG,GAAG,IAAI,CAAC,EAAE,CAAC;SACnE;IACL,CAAC;CACJ"}
|
package/dist/FrameElementList.js
CHANGED
|
@@ -1,135 +1,121 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { FrameElement } from "./FrameElement";
|
|
2
|
+
export class FrameElementList {
|
|
3
|
+
/**
|
|
4
|
+
* Constructor of frame element list from a string. The frame elements for a word is a concatenated list of
|
|
5
|
+
* frame element separated via '#' character.
|
|
6
|
+
* @param frameElementList String consisting of frame elements separated with '#' character.
|
|
7
|
+
*/
|
|
8
|
+
constructor(frameElementList) {
|
|
9
|
+
this._frameElements = [];
|
|
10
|
+
let items = frameElementList.split("#");
|
|
11
|
+
for (let item of items) {
|
|
12
|
+
this._frameElements.push(new FrameElement(item));
|
|
13
|
+
}
|
|
8
14
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
* frame element separated via '#' character.
|
|
18
|
-
* @param frameElementList String consisting of frame elements separated with '#' character.
|
|
19
|
-
*/
|
|
20
|
-
constructor(frameElementList) {
|
|
21
|
-
this._frameElements = [];
|
|
22
|
-
let items = frameElementList.split("#");
|
|
23
|
-
for (let item of items) {
|
|
24
|
-
this._frameElements.push(new FrameElement_1.FrameElement(item));
|
|
25
|
-
}
|
|
15
|
+
/**
|
|
16
|
+
* Overloaded toString method to convert a frame element list to a string. Concatenates the string forms of all
|
|
17
|
+
* frame element with '#' character.
|
|
18
|
+
* @return String form of the frame element list.
|
|
19
|
+
*/
|
|
20
|
+
toString() {
|
|
21
|
+
if (this._frameElements.length == 0) {
|
|
22
|
+
return "NONE";
|
|
26
23
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
32
|
-
toString() {
|
|
33
|
-
if (this._frameElements.length == 0) {
|
|
34
|
-
return "NONE";
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
let result = this._frameElements[0].toString();
|
|
38
|
-
for (let i = 1; i < this._frameElements.length; i++) {
|
|
39
|
-
result += "#" + this._frameElements[i].toString();
|
|
40
|
-
}
|
|
41
|
-
return result;
|
|
24
|
+
else {
|
|
25
|
+
let result = this._frameElements[0].toString();
|
|
26
|
+
for (let i = 1; i < this._frameElements.length; i++) {
|
|
27
|
+
result += "#" + this._frameElements[i].toString();
|
|
42
28
|
}
|
|
29
|
+
return result;
|
|
43
30
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Replaces id's of predicates, which have previousId as synset id, with currentId.
|
|
34
|
+
* @param previousId Previous id of the synset.
|
|
35
|
+
* @param currentId Replacement id.
|
|
36
|
+
*/
|
|
37
|
+
updateConnectedId(previousId, currentId) {
|
|
38
|
+
for (let frameElement of this._frameElements) {
|
|
39
|
+
if (frameElement.getId() == previousId) {
|
|
40
|
+
frameElement.setId(currentId);
|
|
54
41
|
}
|
|
55
42
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
this._frameElements.push(new FrameElement_1.FrameElement("PREDICATE", "NONE", predicateId));
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Adds a predicate argument to the frame element list of this word.
|
|
46
|
+
* @param predicateId Synset id of this predicate.
|
|
47
|
+
*/
|
|
48
|
+
addPredicate(predicateId) {
|
|
49
|
+
if (this._frameElements.length != 0 && this._frameElements[0].getFrameElementType() == "NONE") {
|
|
50
|
+
this._frameElements.shift();
|
|
65
51
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
52
|
+
this._frameElements.push(new FrameElement("PREDICATE", "NONE", predicateId));
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Removes the predicate with the given predicate id.
|
|
56
|
+
*/
|
|
57
|
+
removePredicate() {
|
|
58
|
+
let i = 0;
|
|
59
|
+
for (let frameElement of this._frameElements) {
|
|
60
|
+
if (frameElement.getFrameElementType() == "PREDICATE") {
|
|
61
|
+
this._frameElements.splice(i, 1);
|
|
62
|
+
break;
|
|
77
63
|
}
|
|
64
|
+
i++;
|
|
78
65
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Checks if one of the frame elements is a predicate.
|
|
69
|
+
* @return True, if one of the frame elements is predicate; false otherwise.
|
|
70
|
+
*/
|
|
71
|
+
containsPredicate() {
|
|
72
|
+
for (let frameElement of this._frameElements) {
|
|
73
|
+
if (frameElement.getFrameElementType() == "PREDICATE") {
|
|
74
|
+
return true;
|
|
88
75
|
}
|
|
89
|
-
return false;
|
|
90
76
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Checks if one of the frame element is a predicate with the given id.
|
|
81
|
+
* @param predicateId Synset id to check.
|
|
82
|
+
* @return True, if one of the frame element is predicate; false otherwise.
|
|
83
|
+
*/
|
|
84
|
+
containsPredicateWithId(predicateId) {
|
|
85
|
+
for (let frameElement of this._frameElements) {
|
|
86
|
+
if (frameElement.getFrameElementType() == "PREDICATE" && frameElement.getId() == predicateId) {
|
|
87
|
+
return true;
|
|
101
88
|
}
|
|
102
|
-
return false;
|
|
103
89
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
90
|
+
return false;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Returns the frame elements as an array list of strings.
|
|
94
|
+
* @return Frame elements as an array list of strings.
|
|
95
|
+
*/
|
|
96
|
+
getFrameElements() {
|
|
97
|
+
let result = [];
|
|
98
|
+
for (let frameElement of this._frameElements) {
|
|
99
|
+
result.push(frameElement.toString());
|
|
114
100
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
101
|
+
return result;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Checks if the given argument with the given type and id exists or not.
|
|
105
|
+
* @param frameElementType Type of the frame element to search for.
|
|
106
|
+
* @param frame frame Name of the frame to search for
|
|
107
|
+
* @param id Id of the frame element to search for.
|
|
108
|
+
* @return True if the frame element exists, false otherwise.
|
|
109
|
+
*/
|
|
110
|
+
containsFrameElement(frameElementType, frame, id) {
|
|
111
|
+
for (let frameElement of this._frameElements) {
|
|
112
|
+
if (frameElement.getFrameElementType() == frameElementType &&
|
|
113
|
+
frameElement.getFrame() == frame &&
|
|
114
|
+
frameElement.getId() == id) {
|
|
115
|
+
return true;
|
|
129
116
|
}
|
|
130
|
-
return false;
|
|
131
117
|
}
|
|
118
|
+
return false;
|
|
132
119
|
}
|
|
133
|
-
|
|
134
|
-
});
|
|
120
|
+
}
|
|
135
121
|
//# sourceMappingURL=FrameElementList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FrameElementList.js","sourceRoot":"","sources":["../source/FrameElementList.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FrameElementList.js","sourceRoot":"","sources":["../source/FrameElementList.ts"],"names":[],"mappings":"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"}
|
package/dist/FrameNet.js
CHANGED
|
@@ -1,90 +1,76 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
xmlDocument = new XmlDocument_1.XmlDocument("framenet.xml");
|
|
23
|
-
xmlDocument.parse();
|
|
24
|
-
this.frames = [];
|
|
25
|
-
let rootNode = xmlDocument.getFirstChild();
|
|
26
|
-
let frameNode = rootNode.getFirstChild();
|
|
27
|
-
while (frameNode != undefined) {
|
|
28
|
-
let currentFrame = new Frame_1.Frame(frameNode.getAttributeValue("NAME"));
|
|
29
|
-
let lexicalUnits = frameNode.getFirstChild();
|
|
30
|
-
let lexicalUnit = lexicalUnits.getFirstChild();
|
|
31
|
-
while (lexicalUnit != undefined) {
|
|
32
|
-
currentFrame.addLexicalUnit(lexicalUnit.getPcData());
|
|
33
|
-
lexicalUnit = lexicalUnit.getNextSibling();
|
|
34
|
-
}
|
|
35
|
-
let frameElements = lexicalUnits.getNextSibling();
|
|
36
|
-
let frameElement = frameElements.getFirstChild();
|
|
37
|
-
while (frameElement != undefined) {
|
|
38
|
-
currentFrame.addFrameElement(frameElement.getPcData());
|
|
39
|
-
frameElement = frameElement.getNextSibling();
|
|
40
|
-
}
|
|
41
|
-
this.frames.push(currentFrame);
|
|
42
|
-
frameNode = frameNode.getNextSibling();
|
|
1
|
+
import { Frame } from "./Frame";
|
|
2
|
+
import { XmlDocument } from "nlptoolkit-xmlparser/dist/XmlDocument";
|
|
3
|
+
export class FrameNet {
|
|
4
|
+
/**
|
|
5
|
+
* A constructor of {@link FrameNet} class which reads all frame files inside the files2.txt file. For each
|
|
6
|
+
* filename inside that file, the constructor creates a FrameNet.Frame and puts in inside the frames {@link ArrayList}.
|
|
7
|
+
*/
|
|
8
|
+
constructor() {
|
|
9
|
+
let xmlDocument;
|
|
10
|
+
xmlDocument = new XmlDocument("framenet.xml");
|
|
11
|
+
xmlDocument.parse();
|
|
12
|
+
this.frames = [];
|
|
13
|
+
let rootNode = xmlDocument.getFirstChild();
|
|
14
|
+
let frameNode = rootNode.getFirstChild();
|
|
15
|
+
while (frameNode != undefined) {
|
|
16
|
+
let currentFrame = new Frame(frameNode.getAttributeValue("NAME"));
|
|
17
|
+
let lexicalUnits = frameNode.getFirstChild();
|
|
18
|
+
let lexicalUnit = lexicalUnits.getFirstChild();
|
|
19
|
+
while (lexicalUnit != undefined) {
|
|
20
|
+
currentFrame.addLexicalUnit(lexicalUnit.getPcData());
|
|
21
|
+
lexicalUnit = lexicalUnit.getNextSibling();
|
|
43
22
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
*/
|
|
50
|
-
lexicalUnitExists(synSetId) {
|
|
51
|
-
for (let frame of this.frames) {
|
|
52
|
-
if (frame.lexicalUnitExists(synSetId)) {
|
|
53
|
-
return true;
|
|
54
|
-
}
|
|
23
|
+
let frameElements = lexicalUnits.getNextSibling();
|
|
24
|
+
let frameElement = frameElements.getFirstChild();
|
|
25
|
+
while (frameElement != undefined) {
|
|
26
|
+
currentFrame.addFrameElement(frameElement.getPcData());
|
|
27
|
+
frameElement = frameElement.getNextSibling();
|
|
55
28
|
}
|
|
56
|
-
|
|
29
|
+
this.frames.push(currentFrame);
|
|
30
|
+
frameNode = frameNode.getNextSibling();
|
|
57
31
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Checks if the given lexical unit exists in any frame in the frame set.
|
|
35
|
+
* @param synSetId Id of the lexical unit
|
|
36
|
+
* @return True if any frame contains the given lexical unit, false otherwise.
|
|
37
|
+
*/
|
|
38
|
+
lexicalUnitExists(synSetId) {
|
|
39
|
+
for (let frame of this.frames) {
|
|
40
|
+
if (frame.lexicalUnitExists(synSetId)) {
|
|
41
|
+
return true;
|
|
69
42
|
}
|
|
70
|
-
return result;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Returns number of frames in the frame set.
|
|
74
|
-
* @return Number of frames in the frame set.
|
|
75
|
-
*/
|
|
76
|
-
size() {
|
|
77
|
-
return this.frames.length;
|
|
78
43
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Returns an array of frames that contain the given lexical unit in their lexical units
|
|
48
|
+
* @param synSetId Id of the lexical unit.
|
|
49
|
+
* @return An array of frames that contains the given lexical unit.
|
|
50
|
+
*/
|
|
51
|
+
getFrames(synSetId) {
|
|
52
|
+
var result = [];
|
|
53
|
+
for (let frame of this.frames) {
|
|
54
|
+
if (frame.lexicalUnitExists(synSetId)) {
|
|
55
|
+
result.push(frame);
|
|
56
|
+
}
|
|
86
57
|
}
|
|
58
|
+
return result;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Returns number of frames in the frame set.
|
|
62
|
+
* @return Number of frames in the frame set.
|
|
63
|
+
*/
|
|
64
|
+
size() {
|
|
65
|
+
return this.frames.length;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Returns the element at the specified position in the frame list.
|
|
69
|
+
* @param index index of the element to return
|
|
70
|
+
* @return The element at the specified position in the frame list.
|
|
71
|
+
*/
|
|
72
|
+
getFrame(index) {
|
|
73
|
+
return this.frames[index];
|
|
87
74
|
}
|
|
88
|
-
|
|
89
|
-
});
|
|
75
|
+
}
|
|
90
76
|
//# sourceMappingURL=FrameNet.js.map
|
package/dist/FrameNet.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FrameNet.js","sourceRoot":"","sources":["../source/FrameNet.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FrameNet.js","sourceRoot":"","sources":["../source/FrameNet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAC,WAAW,EAAC,MAAM,uCAAuC,CAAC;AAElE,MAAM,OAAO,QAAQ;IAIjB;;;OAGG;IACH;QACI,IAAI,WAAwB,CAAC;QAC7B,WAAW,GAAG,IAAI,WAAW,CAAC,cAAc,CAAC,CAAA;QAC7C,WAAW,CAAC,KAAK,EAAE,CAAA;QACnB,IAAI,CAAC,MAAM,GAAG,EAAE,CAAA;QAChB,IAAI,QAAQ,GAAG,WAAW,CAAC,aAAa,EAAE,CAAA;QAC1C,IAAI,SAAS,GAAG,QAAQ,CAAC,aAAa,EAAE,CAAA;QACxC,OAAO,SAAS,IAAI,SAAS,EAAC;YAC1B,IAAI,YAAY,GAAG,IAAI,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAA;YACjE,IAAI,YAAY,GAAG,SAAS,CAAC,aAAa,EAAE,CAAA;YAC5C,IAAI,WAAW,GAAG,YAAY,CAAC,aAAa,EAAE,CAAA;YAC9C,OAAO,WAAW,IAAI,SAAS,EAAC;gBAC5B,YAAY,CAAC,cAAc,CAAC,WAAW,CAAC,SAAS,EAAE,CAAC,CAAA;gBACpD,WAAW,GAAG,WAAW,CAAC,cAAc,EAAE,CAAA;aAC7C;YACD,IAAI,aAAa,GAAG,YAAY,CAAC,cAAc,EAAE,CAAA;YACjD,IAAI,YAAY,GAAG,aAAa,CAAC,aAAa,EAAE,CAAA;YAChD,OAAO,YAAY,IAAI,SAAS,EAAC;gBAC7B,YAAY,CAAC,eAAe,CAAC,YAAY,CAAC,SAAS,EAAE,CAAC,CAAA;gBACtD,YAAY,GAAG,YAAY,CAAC,cAAc,EAAE,CAAA;aAC/C;YACD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA;YAC9B,SAAS,GAAG,SAAS,CAAC,cAAc,EAAE,CAAA;SACzC;IACL,CAAC;IAED;;;;OAIG;IACH,iBAAiB,CAAC,QAAgB;QAC9B,KAAK,IAAI,KAAK,IAAI,IAAI,CAAC,MAAM,EAAC;YAC1B,IAAI,KAAK,CAAC,iBAAiB,CAAC,QAAQ,CAAC,EAAC;gBAClC,OAAO,IAAI,CAAA;aACd;SACJ;QACD,OAAO,KAAK,CAAA;IAChB,CAAC;IAED;;;;OAIG;IACH,SAAS,CAAC,QAAgB;QACtB,IAAI,MAAM,GAAiB,EAAE,CAAA;QAC7B,KAAK,IAAI,KAAK,IAAI,IAAI,CAAC,MAAM,EAAC;YAC1B,IAAI,KAAK,CAAC,iBAAiB,CAAC,QAAQ,CAAC,EAAC;gBAClC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;aACrB;SACJ;QACD,OAAO,MAAM,CAAA;IACjB,CAAC;IAED;;;OAGG;IACH,IAAI;QACA,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAA;IAC7B,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,KAAa;QAClB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;IAC7B,CAAC;CACJ"}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nlptoolkit-framenet",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Turkish FrameNet Library",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
7
8
|
"scripts": {
|
|
8
9
|
"test": "Mocha"
|
|
9
10
|
},
|
|
@@ -24,6 +25,6 @@
|
|
|
24
25
|
"typescript": "^4.4.4"
|
|
25
26
|
},
|
|
26
27
|
"dependencies": {
|
|
27
|
-
"nlptoolkit-xmlparser": "^1.0.
|
|
28
|
+
"nlptoolkit-xmlparser": "^1.0.6"
|
|
28
29
|
}
|
|
29
30
|
}
|
package/source/index.ts
ADDED
package/source/tsconfig.json
CHANGED
package/tsconfig.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"module": "umd",
|
|
4
|
-
"target": "
|
|
4
|
+
"target": "es2018",
|
|
5
5
|
"sourceMap": true,
|
|
6
6
|
"noImplicitAny": true,
|
|
7
7
|
"strictNullChecks": true,
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
"moduleResolution": "node"
|
|
10
10
|
},
|
|
11
11
|
"exclude": [
|
|
12
|
-
"source",
|
|
13
12
|
"node_modules",
|
|
14
13
|
"dist"
|
|
15
14
|
]
|
package/index.js
DELETED