nlptoolkit-annotatedtree 1.0.3 → 1.0.4
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/README.md +1 -1
- package/dist/Layer/DependencyLayer.d.ts +4 -0
- package/dist/Layer/DependencyLayer.js +4 -0
- package/dist/Layer/DependencyLayer.js.map +1 -1
- package/dist/Layer/EnglishPropbankLayer.d.ts +9 -0
- package/dist/Layer/EnglishPropbankLayer.js +9 -0
- package/dist/Layer/EnglishPropbankLayer.js.map +1 -1
- package/dist/Layer/EnglishSemanticLayer.d.ts +5 -0
- package/dist/Layer/EnglishSemanticLayer.js +5 -0
- package/dist/Layer/EnglishSemanticLayer.js.map +1 -1
- package/dist/Layer/EnglishWordLayer.d.ts +4 -0
- package/dist/Layer/EnglishWordLayer.js +4 -0
- package/dist/Layer/EnglishWordLayer.js.map +1 -1
- package/dist/Layer/MetaMorphemeLayer.d.ts +19 -0
- package/dist/Layer/MetaMorphemeLayer.js +19 -0
- package/dist/Layer/MetaMorphemeLayer.js.map +1 -1
- package/dist/Layer/MetaMorphemesMovedLayer.d.ts +20 -0
- package/dist/Layer/MetaMorphemesMovedLayer.js +20 -0
- package/dist/Layer/MetaMorphemesMovedLayer.js.map +1 -1
- package/dist/Layer/MorphologicalAnalysisLayer.d.ts +32 -0
- package/dist/Layer/MorphologicalAnalysisLayer.js +32 -0
- package/dist/Layer/MorphologicalAnalysisLayer.js.map +1 -1
- package/dist/Layer/MultiWordLayer.d.ts +9 -0
- package/dist/Layer/MultiWordLayer.js +9 -0
- package/dist/Layer/MultiWordLayer.js.map +1 -1
- package/dist/Layer/NERLayer.d.ts +14 -0
- package/dist/Layer/NERLayer.js +14 -0
- package/dist/Layer/NERLayer.js.map +1 -1
- package/dist/Layer/PersianWordLayer.d.ts +4 -0
- package/dist/Layer/PersianWordLayer.js +4 -0
- package/dist/Layer/PersianWordLayer.js.map +1 -1
- package/dist/Layer/ShallowParseLayer.d.ts +11 -0
- package/dist/Layer/ShallowParseLayer.js +11 -0
- package/dist/Layer/ShallowParseLayer.js.map +1 -1
- package/dist/Layer/SingleWordLayer.d.ts +4 -0
- package/dist/Layer/SingleWordLayer.js +4 -0
- package/dist/Layer/SingleWordLayer.js.map +1 -1
- package/dist/Layer/SourceLanguageWordLayer.d.ts +4 -0
- package/dist/Layer/SourceLanguageWordLayer.js +4 -0
- package/dist/Layer/SourceLanguageWordLayer.js.map +1 -1
- package/dist/Layer/TargetLanguageWordLayer.d.ts +10 -1
- package/dist/Layer/TargetLanguageWordLayer.js +9 -0
- package/dist/Layer/TargetLanguageWordLayer.js.map +1 -1
- package/dist/Layer/TurkishPropbankLayer.d.ts +18 -0
- package/dist/Layer/TurkishPropbankLayer.js +18 -0
- package/dist/Layer/TurkishPropbankLayer.js.map +1 -1
- package/dist/Layer/TurkishSemanticLayer.d.ts +11 -0
- package/dist/Layer/TurkishSemanticLayer.js +11 -0
- package/dist/Layer/TurkishSemanticLayer.js.map +1 -1
- package/dist/Layer/TurkishWordLayer.d.ts +4 -0
- package/dist/Layer/TurkishWordLayer.js +4 -0
- package/dist/Layer/TurkishWordLayer.js.map +1 -1
- package/dist/Layer/WordLayer.d.ts +12 -0
- package/dist/Layer/WordLayer.js +12 -0
- package/dist/Layer/WordLayer.js.map +1 -1
- package/dist/LayerInfo.d.ts +188 -0
- package/dist/LayerInfo.js +229 -63
- package/dist/LayerInfo.js.map +1 -1
- package/dist/ParseNodeDrawable.d.ts +102 -0
- package/dist/ParseNodeDrawable.js +102 -0
- package/dist/ParseNodeDrawable.js.map +1 -1
- package/dist/ParseTreeDrawable.d.ts +134 -0
- package/dist/ParseTreeDrawable.js +153 -16
- package/dist/ParseTreeDrawable.js.map +1 -1
- package/dist/Processor/Condition/IsDoubleNode.d.ts +6 -0
- package/dist/Processor/Condition/IsDoubleNode.js +6 -0
- package/dist/Processor/Condition/IsDoubleNode.js.map +1 -1
- package/dist/Processor/Condition/IsDoubleNodeWithDifferentTags.d.ts +6 -0
- package/dist/Processor/Condition/IsDoubleNodeWithDifferentTags.js +6 -0
- package/dist/Processor/Condition/IsDoubleNodeWithDifferentTags.js.map +1 -1
- package/dist/Processor/Condition/IsEnglishLeafNode.d.ts +5 -0
- package/dist/Processor/Condition/IsEnglishLeafNode.js +5 -0
- package/dist/Processor/Condition/IsEnglishLeafNode.js.map +1 -1
- package/dist/Processor/Condition/IsLeafNode.d.ts +5 -0
- package/dist/Processor/Condition/IsLeafNode.js +5 -0
- package/dist/Processor/Condition/IsLeafNode.js.map +1 -1
- package/dist/Processor/Condition/IsNodeWithPredicate.d.ts +11 -0
- package/dist/Processor/Condition/IsNodeWithPredicate.js +11 -0
- package/dist/Processor/Condition/IsNodeWithPredicate.js.map +1 -1
- package/dist/Processor/Condition/IsNodeWithSymbol.d.ts +9 -0
- package/dist/Processor/Condition/IsNodeWithSymbol.js +9 -0
- package/dist/Processor/Condition/IsNodeWithSymbol.js.map +1 -1
- package/dist/Processor/Condition/IsNodeWithSynSetId.d.ts +9 -0
- package/dist/Processor/Condition/IsNodeWithSynSetId.js +9 -0
- package/dist/Processor/Condition/IsNodeWithSynSetId.js.map +1 -1
- package/dist/Processor/Condition/IsNoneNode.d.ts +5 -0
- package/dist/Processor/Condition/IsNoneNode.js +5 -0
- package/dist/Processor/Condition/IsNoneNode.js.map +1 -1
- package/dist/Processor/Condition/IsNullElement.d.ts +6 -0
- package/dist/Processor/Condition/IsNullElement.js +6 -0
- package/dist/Processor/Condition/IsNullElement.js.map +1 -1
- package/dist/Processor/Condition/IsNumber.d.ts +6 -0
- package/dist/Processor/Condition/IsNumber.js +6 -0
- package/dist/Processor/Condition/IsNumber.js.map +1 -1
- package/dist/Processor/Condition/IsPredicateVerbNode.d.ts +11 -0
- package/dist/Processor/Condition/IsPredicateVerbNode.js +11 -0
- package/dist/Processor/Condition/IsPredicateVerbNode.js.map +1 -1
- package/dist/Processor/Condition/IsProperNoun.d.ts +5 -0
- package/dist/Processor/Condition/IsProperNoun.js +5 -0
- package/dist/Processor/Condition/IsProperNoun.js.map +1 -1
- package/dist/Processor/Condition/IsPunctuationNode.d.ts +5 -0
- package/dist/Processor/Condition/IsPunctuationNode.js +5 -0
- package/dist/Processor/Condition/IsPunctuationNode.js.map +1 -1
- package/dist/Processor/Condition/IsTransferable.d.ts +5 -0
- package/dist/Processor/Condition/IsTransferable.js +5 -0
- package/dist/Processor/Condition/IsTransferable.js.map +1 -1
- package/dist/Processor/Condition/IsTurkishLeafNode.d.ts +5 -0
- package/dist/Processor/Condition/IsTurkishLeafNode.js +5 -0
- package/dist/Processor/Condition/IsTurkishLeafNode.js.map +1 -1
- package/dist/Processor/Condition/IsVPNode.d.ts +5 -0
- package/dist/Processor/Condition/IsVPNode.js +5 -0
- package/dist/Processor/Condition/IsVPNode.js.map +1 -1
- package/dist/Processor/Condition/IsVerbNode.d.ts +10 -0
- package/dist/Processor/Condition/IsVerbNode.js +10 -0
- package/dist/Processor/Condition/IsVerbNode.js.map +1 -1
- package/dist/Processor/LayerExist/ContainsLayerInformation.d.ts +9 -0
- package/dist/Processor/LayerExist/ContainsLayerInformation.js +9 -0
- package/dist/Processor/LayerExist/ContainsLayerInformation.js.map +1 -1
- package/dist/Processor/LayerExist/NotContainsLayerInformation.d.ts +9 -0
- package/dist/Processor/LayerExist/NotContainsLayerInformation.js +9 -0
- package/dist/Processor/LayerExist/NotContainsLayerInformation.js.map +1 -1
- package/dist/Processor/LayerExist/SemiContainsLayerInformation.d.ts +10 -0
- package/dist/Processor/LayerExist/SemiContainsLayerInformation.js +10 -0
- package/dist/Processor/LayerExist/SemiContainsLayerInformation.js.map +1 -1
- package/dist/Processor/LeafConverter/LeafToEnglish.d.ts +3 -0
- package/dist/Processor/LeafConverter/LeafToEnglish.js +3 -0
- package/dist/Processor/LeafConverter/LeafToEnglish.js.map +1 -1
- package/dist/Processor/LeafConverter/LeafToLanguageConverter.d.ts +7 -0
- package/dist/Processor/LeafConverter/LeafToLanguageConverter.js +7 -0
- package/dist/Processor/LeafConverter/LeafToLanguageConverter.js.map +1 -1
- package/dist/Processor/LeafConverter/LeafToPersian.d.ts +3 -0
- package/dist/Processor/LeafConverter/LeafToPersian.js +3 -0
- package/dist/Processor/LeafConverter/LeafToPersian.js.map +1 -1
- package/dist/Processor/LeafConverter/LeafToRootFormConverter.d.ts +7 -0
- package/dist/Processor/LeafConverter/LeafToRootFormConverter.js +7 -0
- package/dist/Processor/LeafConverter/LeafToRootFormConverter.js.map +1 -1
- package/dist/Processor/LeafConverter/LeafToTurkish.d.ts +3 -0
- package/dist/Processor/LeafConverter/LeafToTurkish.js +3 -0
- package/dist/Processor/LeafConverter/LeafToTurkish.js.map +1 -1
- package/dist/Processor/NodeDrawableCollector.d.ts +16 -0
- package/dist/Processor/NodeDrawableCollector.js +16 -0
- package/dist/Processor/NodeDrawableCollector.js.map +1 -1
- package/dist/Processor/TreeToStringConverter.d.ts +15 -0
- package/dist/Processor/TreeToStringConverter.js +15 -0
- package/dist/Processor/TreeToStringConverter.js.map +1 -1
- package/dist/TreeBankDrawable.d.ts +20 -0
- package/dist/TreeBankDrawable.js +20 -0
- package/dist/TreeBankDrawable.js.map +1 -1
- package/package.json +2 -2
- package/source/Layer/DependencyLayer.ts +4 -0
- package/source/Layer/EnglishPropbankLayer.ts +9 -0
- package/source/Layer/EnglishSemanticLayer.ts +5 -0
- package/source/Layer/EnglishWordLayer.ts +4 -0
- package/source/Layer/MetaMorphemeLayer.ts +19 -0
- package/source/Layer/MetaMorphemesMovedLayer.ts +20 -0
- package/source/Layer/MorphologicalAnalysisLayer.ts +32 -0
- package/source/Layer/MultiWordLayer.ts +9 -0
- package/source/Layer/NERLayer.ts +14 -0
- package/source/Layer/PersianWordLayer.ts +4 -0
- package/source/Layer/ShallowParseLayer.ts +11 -0
- package/source/Layer/SingleWordLayer.ts +4 -0
- package/source/Layer/SourceLanguageWordLayer.ts +4 -0
- package/source/Layer/TargetLanguageWordLayer.ts +10 -1
- package/source/Layer/TurkishPropbankLayer.ts +18 -0
- package/source/Layer/TurkishSemanticLayer.ts +11 -0
- package/source/Layer/TurkishWordLayer.ts +4 -0
- package/source/Layer/WordLayer.ts +12 -0
- package/source/LayerInfo.ts +333 -155
- package/source/ParseNodeDrawable.ts +102 -0
- package/source/ParseTreeDrawable.ts +158 -16
- package/source/Processor/Condition/IsDoubleNode.ts +6 -0
- package/source/Processor/Condition/IsDoubleNodeWithDifferentTags.ts +6 -0
- package/source/Processor/Condition/IsEnglishLeafNode.ts +5 -0
- package/source/Processor/Condition/IsLeafNode.ts +5 -0
- package/source/Processor/Condition/IsNodeWithPredicate.ts +11 -0
- package/source/Processor/Condition/IsNodeWithSymbol.ts +9 -0
- package/source/Processor/Condition/IsNodeWithSynSetId.ts +9 -0
- package/source/Processor/Condition/IsNoneNode.ts +5 -0
- package/source/Processor/Condition/IsNullElement.ts +6 -0
- package/source/Processor/Condition/IsNumber.ts +6 -0
- package/source/Processor/Condition/IsPredicateVerbNode.ts +11 -0
- package/source/Processor/Condition/IsProperNoun.ts +5 -0
- package/source/Processor/Condition/IsPunctuationNode.ts +5 -0
- package/source/Processor/Condition/IsTransferable.ts +5 -0
- package/source/Processor/Condition/IsTurkishLeafNode.ts +5 -0
- package/source/Processor/Condition/IsVPNode.ts +5 -0
- package/source/Processor/Condition/IsVerbNode.ts +10 -0
- package/source/Processor/LayerExist/ContainsLayerInformation.ts +9 -0
- package/source/Processor/LayerExist/NotContainsLayerInformation.ts +9 -0
- package/source/Processor/LayerExist/SemiContainsLayerInformation.ts +10 -0
- package/source/Processor/LeafConverter/LeafToEnglish.ts +3 -0
- package/source/Processor/LeafConverter/LeafToLanguageConverter.ts +7 -0
- package/source/Processor/LeafConverter/LeafToPersian.ts +3 -0
- package/source/Processor/LeafConverter/LeafToRootFormConverter.ts +7 -0
- package/source/Processor/LeafConverter/LeafToTurkish.ts +3 -0
- package/source/Processor/NodeDrawableCollector.ts +16 -0
- package/source/Processor/TreeToStringConverter.ts +15 -0
- package/source/TreeBankDrawable.ts +20 -0
|
@@ -12,6 +12,10 @@
|
|
|
12
12
|
exports.SingleWordLayer = void 0;
|
|
13
13
|
const WordLayer_1 = require("./WordLayer");
|
|
14
14
|
class SingleWordLayer extends WordLayer_1.WordLayer {
|
|
15
|
+
/**
|
|
16
|
+
* Sets the property of the word
|
|
17
|
+
* @param layerValue Layer info
|
|
18
|
+
*/
|
|
15
19
|
setLayerValue(layerValue) {
|
|
16
20
|
this.layerValue = layerValue;
|
|
17
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SingleWordLayer.js","sourceRoot":"","sources":["../../source/Layer/SingleWordLayer.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,2CAAsC;IAEtC,MAAsB,eAAmB,SAAQ,qBAAS;QAEtD,aAAa,CAAC,UAAkB;YAC5B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAChC,CAAC;KAEJ;
|
|
1
|
+
{"version":3,"file":"SingleWordLayer.js","sourceRoot":"","sources":["../../source/Layer/SingleWordLayer.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,2CAAsC;IAEtC,MAAsB,eAAmB,SAAQ,qBAAS;QAEtD;;;WAGG;QACH,aAAa,CAAC,UAAkB;YAC5B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAChC,CAAC;KAEJ;IAVD,0CAUC"}
|
|
@@ -12,6 +12,10 @@
|
|
|
12
12
|
exports.SourceLanguageWordLayer = void 0;
|
|
13
13
|
const SingleWordLayer_1 = require("./SingleWordLayer");
|
|
14
14
|
class SourceLanguageWordLayer extends SingleWordLayer_1.SingleWordLayer {
|
|
15
|
+
/**
|
|
16
|
+
* Sets the name of the word
|
|
17
|
+
* @param layerValue Name of the word
|
|
18
|
+
*/
|
|
15
19
|
constructor(layerValue) {
|
|
16
20
|
super();
|
|
17
21
|
this.setLayerValue(layerValue);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SourceLanguageWordLayer.js","sourceRoot":"","sources":["../../source/Layer/SourceLanguageWordLayer.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,uDAAkD;IAElD,MAAsB,uBAAwB,SAAQ,iCAAuB;QAEzE,YAAY,UAAkB;YAC1B,KAAK,EAAE,CAAC;YACR,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,CAAA;QAClC,CAAC;KACJ;
|
|
1
|
+
{"version":3,"file":"SourceLanguageWordLayer.js","sourceRoot":"","sources":["../../source/Layer/SourceLanguageWordLayer.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,uDAAkD;IAElD,MAAsB,uBAAwB,SAAQ,iCAAuB;QAEzE;;;WAGG;QACH,YAAY,UAAkB;YAC1B,KAAK,EAAE,CAAC;YACR,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,CAAA;QAClC,CAAC;KACJ;IAVD,0DAUC"}
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import { MultiWordLayer } from "./MultiWordLayer";
|
|
2
2
|
import { ViewLayerType } from "nlptoolkit-annotatedsentence/dist/ViewLayerType";
|
|
3
3
|
export declare abstract class TargetLanguageWordLayer extends MultiWordLayer<string> {
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Sets the surface form(s) of the word(s) possibly separated with space.
|
|
6
|
+
* @param layerValue Surface form(s) of the word(s) possibly separated with space.
|
|
7
|
+
*/
|
|
8
|
+
protected constructor(layerValue: string);
|
|
9
|
+
/**
|
|
10
|
+
* Sets the surface form(s) of the word(s). Value may consist of multiple surface form(s)
|
|
11
|
+
* separated via space character.
|
|
12
|
+
* @param layerValue New layer info
|
|
13
|
+
*/
|
|
5
14
|
setLayerValue(layerValue: string): void;
|
|
6
15
|
getLayerSize(viewLayer: ViewLayerType): number;
|
|
7
16
|
getLayerInfoAt(viewLayer: ViewLayerType, index: number): string;
|
|
@@ -12,10 +12,19 @@
|
|
|
12
12
|
exports.TargetLanguageWordLayer = void 0;
|
|
13
13
|
const MultiWordLayer_1 = require("./MultiWordLayer");
|
|
14
14
|
class TargetLanguageWordLayer extends MultiWordLayer_1.MultiWordLayer {
|
|
15
|
+
/**
|
|
16
|
+
* Sets the surface form(s) of the word(s) possibly separated with space.
|
|
17
|
+
* @param layerValue Surface form(s) of the word(s) possibly separated with space.
|
|
18
|
+
*/
|
|
15
19
|
constructor(layerValue) {
|
|
16
20
|
super();
|
|
17
21
|
this.setLayerValue(layerValue);
|
|
18
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* Sets the surface form(s) of the word(s). Value may consist of multiple surface form(s)
|
|
25
|
+
* separated via space character.
|
|
26
|
+
* @param layerValue New layer info
|
|
27
|
+
*/
|
|
19
28
|
setLayerValue(layerValue) {
|
|
20
29
|
this.items = new Array();
|
|
21
30
|
this.layerValue = layerValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TargetLanguageWordLayer.js","sourceRoot":"","sources":["../../source/Layer/TargetLanguageWordLayer.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,qDAAgD;IAGhD,MAAsB,uBAAwB,SAAQ,+BAAsB;QAExE,
|
|
1
|
+
{"version":3,"file":"TargetLanguageWordLayer.js","sourceRoot":"","sources":["../../source/Layer/TargetLanguageWordLayer.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,qDAAgD;IAGhD,MAAsB,uBAAwB,SAAQ,+BAAsB;QAExE;;;WAGG;QACH,YAAsB,UAAkB;YACpC,KAAK,EAAE,CAAC;YACR,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,CAAA;QAClC,CAAC;QAED;;;;WAIG;QACH,aAAa,CAAC,UAAkB;YAC5B,IAAI,CAAC,KAAK,GAAG,IAAI,KAAK,EAAU,CAAC;YACjC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;YAC7B,IAAI,UAAU,IAAI,IAAI,EAAC;gBACnB,IAAI,UAAU,GAAG,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;gBACzC,KAAK,IAAI,IAAI,IAAI,UAAU,EAAC;oBACxB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;iBACxB;aACJ;QACL,CAAC;QAED,YAAY,CAAC,SAAwB;YACjC,OAAO,CAAC,CAAC;QACb,CAAC;QAED,cAAc,CAAC,SAAwB,EAAE,KAAa;YAClD,OAAO,IAAI,CAAC;QAChB,CAAC;KACJ;IAlCD,0DAkCC"}
|
|
@@ -2,8 +2,26 @@ import { SingleWordLayer } from "./SingleWordLayer";
|
|
|
2
2
|
import { Argument } from "nlptoolkit-propbank/dist/Argument";
|
|
3
3
|
export declare class TurkishPropbankLayer extends SingleWordLayer<Argument> {
|
|
4
4
|
private propbank;
|
|
5
|
+
/**
|
|
6
|
+
* Constructor for the Turkish propbank layer. Sets single semantic role information for multiple words in
|
|
7
|
+
* the node.
|
|
8
|
+
* @param layerValue Layer value for the propbank information. Consists of semantic role information
|
|
9
|
+
* of multiple words.
|
|
10
|
+
*/
|
|
5
11
|
constructor(layerValue: string);
|
|
12
|
+
/**
|
|
13
|
+
* Sets the layer value for Turkish propbank layer. Converts the string form to an Argument.
|
|
14
|
+
* @param layerValue New value for Turkish propbank layer.
|
|
15
|
+
*/
|
|
6
16
|
setLayerValue(layerValue: string): void;
|
|
17
|
+
/**
|
|
18
|
+
* Accessor for the propbank field.
|
|
19
|
+
* @return Propbank field.
|
|
20
|
+
*/
|
|
7
21
|
getArgument(): Argument;
|
|
22
|
+
/**
|
|
23
|
+
* Another accessor for the propbank field.
|
|
24
|
+
* @return String form of the propbank field.
|
|
25
|
+
*/
|
|
8
26
|
getLayerValue(): string;
|
|
9
27
|
}
|
|
@@ -13,19 +13,37 @@
|
|
|
13
13
|
const SingleWordLayer_1 = require("./SingleWordLayer");
|
|
14
14
|
const Argument_1 = require("nlptoolkit-propbank/dist/Argument");
|
|
15
15
|
class TurkishPropbankLayer extends SingleWordLayer_1.SingleWordLayer {
|
|
16
|
+
/**
|
|
17
|
+
* Constructor for the Turkish propbank layer. Sets single semantic role information for multiple words in
|
|
18
|
+
* the node.
|
|
19
|
+
* @param layerValue Layer value for the propbank information. Consists of semantic role information
|
|
20
|
+
* of multiple words.
|
|
21
|
+
*/
|
|
16
22
|
constructor(layerValue) {
|
|
17
23
|
super();
|
|
18
24
|
this.propbank = null;
|
|
19
25
|
this.layerName = "propBank";
|
|
20
26
|
this.setLayerValue(layerValue);
|
|
21
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* Sets the layer value for Turkish propbank layer. Converts the string form to an Argument.
|
|
30
|
+
* @param layerValue New value for Turkish propbank layer.
|
|
31
|
+
*/
|
|
22
32
|
setLayerValue(layerValue) {
|
|
23
33
|
this.layerValue = layerValue;
|
|
24
34
|
this.propbank = new Argument_1.Argument(layerValue);
|
|
25
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Accessor for the propbank field.
|
|
38
|
+
* @return Propbank field.
|
|
39
|
+
*/
|
|
26
40
|
getArgument() {
|
|
27
41
|
return this.propbank;
|
|
28
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* Another accessor for the propbank field.
|
|
45
|
+
* @return String form of the propbank field.
|
|
46
|
+
*/
|
|
29
47
|
getLayerValue() {
|
|
30
48
|
return this.propbank.getArgumentType() + "$" + this.propbank.getId();
|
|
31
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TurkishPropbankLayer.js","sourceRoot":"","sources":["../../source/Layer/TurkishPropbankLayer.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,uDAAkD;IAClD,gEAA2D;IAE3D,MAAa,oBAAqB,SAAQ,iCAAyB;QAI/D,YAAY,UAAkB;YAC1B,KAAK,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"TurkishPropbankLayer.js","sourceRoot":"","sources":["../../source/Layer/TurkishPropbankLayer.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,uDAAkD;IAClD,gEAA2D;IAE3D,MAAa,oBAAqB,SAAQ,iCAAyB;QAI/D;;;;;WAKG;QACH,YAAY,UAAkB;YAC1B,KAAK,EAAE,CAAC;YATJ,aAAQ,GAAa,IAAI,CAAA;YAU7B,IAAI,CAAC,SAAS,GAAG,UAAU,CAAA;YAC3B,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,CAAA;QAClC,CAAC;QAED;;;WAGG;QACH,aAAa,CAAC,UAAkB;YAC5B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;YAC5B,IAAI,CAAC,QAAQ,GAAG,IAAI,mBAAQ,CAAC,UAAU,CAAC,CAAA;QAC5C,CAAC;QAED;;;WAGG;QACH,WAAW;YACP,OAAO,IAAI,CAAC,QAAQ,CAAA;QACxB,CAAC;QAED;;;WAGG;QACH,aAAa;YACT,OAAO,IAAI,CAAC,QAAQ,CAAC,eAAe,EAAE,GAAG,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAA;QACxE,CAAC;KACJ;IAxCD,oDAwCC"}
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import { MultiWordLayer } from "./MultiWordLayer";
|
|
2
2
|
export declare class TurkishSemanticLayer extends MultiWordLayer<string> {
|
|
3
|
+
/**
|
|
4
|
+
* Constructor for the Turkish semantic layer. Sets semantic information for each word in
|
|
5
|
+
* the node.
|
|
6
|
+
* @param layerValue Layer value for the Turkish semantic information. Consists of semantic (Turkish synset id)
|
|
7
|
+
* information for every word.
|
|
8
|
+
*/
|
|
3
9
|
constructor(layerValue: string);
|
|
10
|
+
/**
|
|
11
|
+
* Sets the value for the Turkish semantic layer in a node. Value may consist of multiple sense information
|
|
12
|
+
* separated via '$' character. Each sense value is a string representing the synset id of the sense.
|
|
13
|
+
* @param layerValue New layer info
|
|
14
|
+
*/
|
|
4
15
|
setLayerValue(layerValue: string): void;
|
|
5
16
|
}
|
|
@@ -12,11 +12,22 @@
|
|
|
12
12
|
exports.TurkishSemanticLayer = void 0;
|
|
13
13
|
const MultiWordLayer_1 = require("./MultiWordLayer");
|
|
14
14
|
class TurkishSemanticLayer extends MultiWordLayer_1.MultiWordLayer {
|
|
15
|
+
/**
|
|
16
|
+
* Constructor for the Turkish semantic layer. Sets semantic information for each word in
|
|
17
|
+
* the node.
|
|
18
|
+
* @param layerValue Layer value for the Turkish semantic information. Consists of semantic (Turkish synset id)
|
|
19
|
+
* information for every word.
|
|
20
|
+
*/
|
|
15
21
|
constructor(layerValue) {
|
|
16
22
|
super();
|
|
17
23
|
this.layerName = "semantics";
|
|
18
24
|
this.setLayerValue(layerValue);
|
|
19
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Sets the value for the Turkish semantic layer in a node. Value may consist of multiple sense information
|
|
28
|
+
* separated via '$' character. Each sense value is a string representing the synset id of the sense.
|
|
29
|
+
* @param layerValue New layer info
|
|
30
|
+
*/
|
|
20
31
|
setLayerValue(layerValue) {
|
|
21
32
|
this.items = new Array();
|
|
22
33
|
this.layerValue = layerValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TurkishSemanticLayer.js","sourceRoot":"","sources":["../../source/Layer/TurkishSemanticLayer.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,qDAAgD;IAEhD,MAAa,oBAAqB,SAAQ,+BAAsB;QAE5D,YAAY,UAAkB;YAC1B,KAAK,EAAE,CAAC;YACR,IAAI,CAAC,SAAS,GAAG,WAAW,CAAA;YAC5B,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,CAAA;QAClC,CAAC;QAED,aAAa,CAAC,UAAkB;YAC5B,IAAI,CAAC,KAAK,GAAG,IAAI,KAAK,EAAU,CAAC;YACjC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;YAC7B,IAAI,UAAU,IAAI,IAAI,EAAC;gBACnB,IAAI,aAAa,GAAG,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;gBAC5C,KAAK,IAAI,OAAO,IAAI,aAAa,EAAC;oBAC9B,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;iBAC3B;aACJ;QACL,CAAC;KAEJ;
|
|
1
|
+
{"version":3,"file":"TurkishSemanticLayer.js","sourceRoot":"","sources":["../../source/Layer/TurkishSemanticLayer.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,qDAAgD;IAEhD,MAAa,oBAAqB,SAAQ,+BAAsB;QAE5D;;;;;WAKG;QACH,YAAY,UAAkB;YAC1B,KAAK,EAAE,CAAC;YACR,IAAI,CAAC,SAAS,GAAG,WAAW,CAAA;YAC5B,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,CAAA;QAClC,CAAC;QAED;;;;WAIG;QACH,aAAa,CAAC,UAAkB;YAC5B,IAAI,CAAC,KAAK,GAAG,IAAI,KAAK,EAAU,CAAC;YACjC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;YAC7B,IAAI,UAAU,IAAI,IAAI,EAAC;gBACnB,IAAI,aAAa,GAAG,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;gBAC5C,KAAK,IAAI,OAAO,IAAI,aAAa,EAAC;oBAC9B,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;iBAC3B;aACJ;QACL,CAAC;KAEJ;IA9BD,oDA8BC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { TargetLanguageWordLayer } from "./TargetLanguageWordLayer";
|
|
2
2
|
export declare class TurkishWordLayer extends TargetLanguageWordLayer {
|
|
3
|
+
/**
|
|
4
|
+
* Constructor for the word layer for Turkish language. Sets the surface form.
|
|
5
|
+
* @param layerValue Value for the word layer.
|
|
6
|
+
*/
|
|
3
7
|
constructor(layerValue: string);
|
|
4
8
|
}
|
|
@@ -12,6 +12,10 @@
|
|
|
12
12
|
exports.TurkishWordLayer = void 0;
|
|
13
13
|
const TargetLanguageWordLayer_1 = require("./TargetLanguageWordLayer");
|
|
14
14
|
class TurkishWordLayer extends TargetLanguageWordLayer_1.TargetLanguageWordLayer {
|
|
15
|
+
/**
|
|
16
|
+
* Constructor for the word layer for Turkish language. Sets the surface form.
|
|
17
|
+
* @param layerValue Value for the word layer.
|
|
18
|
+
*/
|
|
15
19
|
constructor(layerValue) {
|
|
16
20
|
super(layerValue);
|
|
17
21
|
this.layerName = "turkish";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TurkishWordLayer.js","sourceRoot":"","sources":["../../source/Layer/TurkishWordLayer.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,uEAAkE;IAElE,MAAa,gBAAiB,SAAQ,iDAAuB;QAEzD,YAAY,UAAkB;YAC1B,KAAK,CAAC,UAAU,CAAC,CAAC;YAClB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;QAC9B,CAAC;KACJ;
|
|
1
|
+
{"version":3,"file":"TurkishWordLayer.js","sourceRoot":"","sources":["../../source/Layer/TurkishWordLayer.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,uEAAkE;IAElE,MAAa,gBAAiB,SAAQ,iDAAuB;QAEzD;;;WAGG;QACH,YAAY,UAAkB;YAC1B,KAAK,CAAC,UAAU,CAAC,CAAC;YAClB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;QAC9B,CAAC;KACJ;IAVD,4CAUC"}
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
export declare abstract class WordLayer {
|
|
2
2
|
protected layerValue: string;
|
|
3
3
|
protected layerName: string;
|
|
4
|
+
/**
|
|
5
|
+
* Accessor for the layerValue attribute.
|
|
6
|
+
* @return LayerValue attribute.
|
|
7
|
+
*/
|
|
4
8
|
getLayerValue(): string;
|
|
9
|
+
/**
|
|
10
|
+
* Accessor for the layerName attribute.
|
|
11
|
+
* @return LayerName attribute.
|
|
12
|
+
*/
|
|
5
13
|
getLayerName(): string;
|
|
14
|
+
/**
|
|
15
|
+
* Returns string form of the word layer.
|
|
16
|
+
* @return String form of the word layer.
|
|
17
|
+
*/
|
|
6
18
|
getLayerDescription(): string;
|
|
7
19
|
}
|
package/dist/Layer/WordLayer.js
CHANGED
|
@@ -11,12 +11,24 @@
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.WordLayer = void 0;
|
|
13
13
|
class WordLayer {
|
|
14
|
+
/**
|
|
15
|
+
* Accessor for the layerValue attribute.
|
|
16
|
+
* @return LayerValue attribute.
|
|
17
|
+
*/
|
|
14
18
|
getLayerValue() {
|
|
15
19
|
return this.layerValue;
|
|
16
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Accessor for the layerName attribute.
|
|
23
|
+
* @return LayerName attribute.
|
|
24
|
+
*/
|
|
17
25
|
getLayerName() {
|
|
18
26
|
return this.layerName;
|
|
19
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* Returns string form of the word layer.
|
|
30
|
+
* @return String form of the word layer.
|
|
31
|
+
*/
|
|
20
32
|
getLayerDescription() {
|
|
21
33
|
return "{" + this.layerName + "=" + this.layerValue + "}";
|
|
22
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WordLayer.js","sourceRoot":"","sources":["../../source/Layer/WordLayer.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,MAAsB,SAAS;QAK3B,aAAa;YACT,OAAO,IAAI,CAAC,UAAU,CAAA;QAC1B,CAAC;QAED,YAAY;YACR,OAAO,IAAI,CAAC,SAAS,CAAA;QACzB,CAAC;QAED,mBAAmB;YACf,OAAO,GAAG,GAAG,IAAI,CAAC,SAAS,GAAG,GAAG,GAAG,IAAI,CAAC,UAAU,GAAG,GAAG,CAAA;QAC7D,CAAC;KACJ;
|
|
1
|
+
{"version":3,"file":"WordLayer.js","sourceRoot":"","sources":["../../source/Layer/WordLayer.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,MAAsB,SAAS;QAK3B;;;WAGG;QACH,aAAa;YACT,OAAO,IAAI,CAAC,UAAU,CAAA;QAC1B,CAAC;QAED;;;WAGG;QACH,YAAY;YACR,OAAO,IAAI,CAAC,SAAS,CAAA;QACzB,CAAC;QAED;;;WAGG;QACH,mBAAmB;YACf,OAAO,GAAG,GAAG,IAAI,CAAC,SAAS,GAAG,GAAG,GAAG,IAAI,CAAC,UAAU,GAAG,GAAG,CAAA;QAC7D,CAAC;KACJ;IA5BD,8BA4BC"}
|
package/dist/LayerInfo.d.ts
CHANGED
|
@@ -5,41 +5,229 @@ import { Argument } from "nlptoolkit-propbank/dist/Argument";
|
|
|
5
5
|
import { AnnotatedWord } from "nlptoolkit-annotatedsentence/dist/AnnotatedWord";
|
|
6
6
|
export declare class LayerInfo {
|
|
7
7
|
private layers;
|
|
8
|
+
/**
|
|
9
|
+
* Constructs the layer information from the given string. Layers are represented as
|
|
10
|
+
* {layername1=layervalue1}{layername2=layervalue2}...{layernamek=layervaluek} where layer name is one of the
|
|
11
|
+
* following: turkish, persian, english, morphologicalAnalysis, metaMorphemes, metaMorphemesMoved, dependency,
|
|
12
|
+
* semantics, namedEntity, propBank, englishPropbank, englishSemantics, shallowParse. Splits the string w.r.t.
|
|
13
|
+
* parentheses and constructs layer objects and put them layers map accordingly.
|
|
14
|
+
* @param info Line consisting of layer info.
|
|
15
|
+
*/
|
|
8
16
|
constructor(info?: string);
|
|
17
|
+
/**
|
|
18
|
+
* Changes the given layer info with the given string layer value. For all layers new layer object is created and
|
|
19
|
+
* replaces the original object. For turkish layer, it also destroys inflectional_group, part_of_speech,
|
|
20
|
+
* meta_morpheme, meta_morpheme_moved and semantics layers. For persian layer, it also destroys the semantics layer.
|
|
21
|
+
* @param viewLayer Layer name.
|
|
22
|
+
* @param layerValue New layer value.
|
|
23
|
+
*/
|
|
9
24
|
setLayerData(viewLayer: ViewLayerType, layerValue: string): void;
|
|
25
|
+
/**
|
|
26
|
+
* Updates the inflectional_group and part_of_speech layers according to the given parse.
|
|
27
|
+
* @param parse New parse to update layers.
|
|
28
|
+
*/
|
|
10
29
|
setMorphologicalAnalysis(parse: MorphologicalParse): void;
|
|
30
|
+
/**
|
|
31
|
+
* Updates the metamorpheme layer according to the given parse.
|
|
32
|
+
* @param parse NEw parse to update layer.
|
|
33
|
+
*/
|
|
11
34
|
setMetaMorphemes(parse: MetamorphicParse): void;
|
|
35
|
+
/**
|
|
36
|
+
* Checks if the given layer exists.
|
|
37
|
+
* @param viewLayerType Layer name
|
|
38
|
+
* @return True if the layer exists, false otherwise.
|
|
39
|
+
*/
|
|
12
40
|
layerExists(viewLayerType: ViewLayerType): boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Two level layer check method. For turkish, persian and english_semantics layers, if the layer does not exist,
|
|
43
|
+
* returns english layer. For part_of_speech, inflectional_group, meta_morpheme, semantics, propbank, shallow_parse,
|
|
44
|
+
* english_propbank layers, if the layer does not exist, it checks turkish layer. For meta_morpheme_moved, if the
|
|
45
|
+
* layer does not exist, it checks meta_morpheme layer.
|
|
46
|
+
* @param viewLayer Layer to be checked.
|
|
47
|
+
* @return Returns the original layer if the layer exists. For turkish, persian and english_semantics layers, if the
|
|
48
|
+
* layer does not exist, returns english layer. For part_of_speech, inflectional_group, meta_morpheme, semantics,
|
|
49
|
+
* propbank, shallow_parse, english_propbank layers, if the layer does not exist, it checks turkish layer
|
|
50
|
+
* recursively. For meta_morpheme_moved, if the layer does not exist, it checks meta_morpheme layer recursively.
|
|
51
|
+
*/
|
|
13
52
|
checkLayer(viewLayer: ViewLayerType): ViewLayerType;
|
|
53
|
+
/**
|
|
54
|
+
* Returns number of words in the Turkish or Persian layer, whichever exists.
|
|
55
|
+
* @return Number of words in the Turkish or Persian layer, whichever exists.
|
|
56
|
+
*/
|
|
14
57
|
getNumberOfWords(): number;
|
|
58
|
+
/**
|
|
59
|
+
* Returns the layer value at the given index.
|
|
60
|
+
* @param viewLayerType Layer for which the value at the given word index will be returned.
|
|
61
|
+
* @param index Word Position of the layer value.
|
|
62
|
+
* @param layerName Name of the layer.
|
|
63
|
+
* @return Layer info at word position index for a multiword layer.
|
|
64
|
+
*/
|
|
15
65
|
private getMultiWordAt;
|
|
66
|
+
/**
|
|
67
|
+
* Layers may contain multiple Turkish words. This method returns the Turkish word at position index.
|
|
68
|
+
* @param index Position of the Turkish word.
|
|
69
|
+
* @return The Turkish word at position index.
|
|
70
|
+
*/
|
|
16
71
|
getTurkishWordAt(index: number): string;
|
|
72
|
+
/**
|
|
73
|
+
* Returns number of meanings in the Turkish layer.
|
|
74
|
+
* @return Number of meanings in the Turkish layer.
|
|
75
|
+
*/
|
|
17
76
|
getNumberOfMeanings(): number;
|
|
77
|
+
/**
|
|
78
|
+
* Layers may contain multiple semantic information corresponding to multiple Turkish words. This method returns
|
|
79
|
+
* the sense id at position index.
|
|
80
|
+
* @param index Position of the Turkish word.
|
|
81
|
+
* @throws LayerNotExistsException If the layer does not exist, it throws LayerNotExistsException.
|
|
82
|
+
* @throws WordNotExistsException If the index is out of bounds, it throws WordNotExistsException.
|
|
83
|
+
* @return The Turkish sense id at position index.
|
|
84
|
+
*/
|
|
18
85
|
getSemanticAt(index: number): string;
|
|
86
|
+
/**
|
|
87
|
+
* Layers may contain multiple shallow parse information corresponding to multiple Turkish words. This method
|
|
88
|
+
* returns the shallow parse tag at position index.
|
|
89
|
+
* @param index Position of the Turkish word.
|
|
90
|
+
* @throws LayerNotExistsException If the layer does not exist, it throws LayerNotExistsException.
|
|
91
|
+
* @throws WordNotExistsException If the index is out of bounds, it throws WordNotExistsException.
|
|
92
|
+
* @return The shallow parse tag at position index.
|
|
93
|
+
*/
|
|
19
94
|
getShallowParseAt(index: number): string;
|
|
95
|
+
/**
|
|
96
|
+
* Returns the Turkish PropBank argument info.
|
|
97
|
+
* @return Turkish PropBank argument info.
|
|
98
|
+
*/
|
|
20
99
|
getArgument(): Argument;
|
|
100
|
+
/**
|
|
101
|
+
* A word may have multiple English propbank info. This method returns the English PropBank argument info at
|
|
102
|
+
* position index.
|
|
103
|
+
* @return English PropBank argument info at position index.
|
|
104
|
+
*/
|
|
21
105
|
getArgumentAt(index: number): Argument;
|
|
106
|
+
/**
|
|
107
|
+
* Layers may contain multiple morphological parse information corresponding to multiple Turkish words. This method
|
|
108
|
+
* returns the morphological parse at position index.
|
|
109
|
+
* @param index Position of the Turkish word.
|
|
110
|
+
* @return The morphological parse at position index.
|
|
111
|
+
*/
|
|
22
112
|
getMorphologicalParseAt(index: number): MorphologicalParse;
|
|
113
|
+
/**
|
|
114
|
+
* Layers may contain multiple metamorphic parse information corresponding to multiple Turkish words. This method
|
|
115
|
+
* returns the metamorphic parse at position index.
|
|
116
|
+
* @param index Position of the Turkish word.
|
|
117
|
+
* @return The metamorphic parse at position index.
|
|
118
|
+
*/
|
|
23
119
|
getMetamorphicParseAt(index: number): MetamorphicParse;
|
|
120
|
+
/**
|
|
121
|
+
* Layers may contain multiple metamorphemes corresponding to one or multiple Turkish words. This method
|
|
122
|
+
* returns the metamorpheme at position index.
|
|
123
|
+
* @param index Position of the metamorpheme.
|
|
124
|
+
* @return The metamorpheme at position index.
|
|
125
|
+
*/
|
|
24
126
|
getMetaMorphemeAtIndex(index: number): string;
|
|
127
|
+
/**
|
|
128
|
+
* Layers may contain multiple metamorphemes corresponding to one or multiple Turkish words. This method
|
|
129
|
+
* returns all metamorphemes from position index.
|
|
130
|
+
* @param index Start position of the metamorpheme.
|
|
131
|
+
* @return All metamorphemes from position index.
|
|
132
|
+
*/
|
|
25
133
|
getMetaMorphemeFromIndex(index: number): string;
|
|
134
|
+
/**
|
|
135
|
+
* For layers with multiple item information, this method returns total items in that layer.
|
|
136
|
+
* @param viewLayer Layer name
|
|
137
|
+
* @return Total items in the given layer.
|
|
138
|
+
*/
|
|
26
139
|
getLayerSize(viewLayer: ViewLayerType): number;
|
|
140
|
+
/**
|
|
141
|
+
* For layers with multiple item information, this method returns the item at position index.
|
|
142
|
+
* @param viewLayer Layer name
|
|
143
|
+
* @param index Position of the item.
|
|
144
|
+
* @return The item at position index.
|
|
145
|
+
*/
|
|
27
146
|
getLayerInfoAt(viewLayer: ViewLayerType, index: number): string;
|
|
147
|
+
/**
|
|
148
|
+
* Returns the string form of all layer information except part_of_speech layer.
|
|
149
|
+
* @return The string form of all layer information except part_of_speech layer.
|
|
150
|
+
*/
|
|
28
151
|
getLayerDescription(): string;
|
|
152
|
+
/**
|
|
153
|
+
* Returns the layer info for the given layer.
|
|
154
|
+
* @param viewLayer Layer name.
|
|
155
|
+
* @return Layer info for the given layer.
|
|
156
|
+
*/
|
|
29
157
|
getLayerData(viewLayer: ViewLayerType): string;
|
|
158
|
+
/**
|
|
159
|
+
* Returns the layer info for the given layer, if that layer exists. Otherwise, it returns the fallback layer info
|
|
160
|
+
* determined by the checkLayer.
|
|
161
|
+
* @param viewLayer Layer name
|
|
162
|
+
* @return Layer info for the given layer if it exists. Otherwise, it returns the fallback layer info determined by
|
|
163
|
+
* the checkLayer.
|
|
164
|
+
*/
|
|
30
165
|
getRobustLayerData(viewLayer: ViewLayerType): string;
|
|
166
|
+
/**
|
|
167
|
+
* Initializes the metamorphemesmoved layer with metamorpheme layer except the root word.
|
|
168
|
+
*/
|
|
31
169
|
private updateMetaMorphemesMoved;
|
|
170
|
+
/**
|
|
171
|
+
* Removes the given layer from hash map.
|
|
172
|
+
* @param layerType Layer to be removed.
|
|
173
|
+
*/
|
|
32
174
|
removeLayer(layerType: ViewLayerType): void;
|
|
175
|
+
/**
|
|
176
|
+
* Removes metamorpheme and metamorphemesmoved layers.
|
|
177
|
+
*/
|
|
33
178
|
metaMorphemeClear(): void;
|
|
179
|
+
/**
|
|
180
|
+
* Removes English layer.
|
|
181
|
+
*/
|
|
34
182
|
englishClear(): void;
|
|
183
|
+
/**
|
|
184
|
+
* Removes the dependency layer.
|
|
185
|
+
*/
|
|
35
186
|
dependencyClear(): void;
|
|
187
|
+
/**
|
|
188
|
+
* Removed metamorphemesmoved layer.
|
|
189
|
+
*/
|
|
36
190
|
metaMorphemesMovedClear(): void;
|
|
191
|
+
/**
|
|
192
|
+
* Removes the Turkish semantic layer.
|
|
193
|
+
*/
|
|
37
194
|
semanticClear(): void;
|
|
195
|
+
/**
|
|
196
|
+
* Removes the English semantic layer.
|
|
197
|
+
*/
|
|
38
198
|
englishSemanticClear(): void;
|
|
199
|
+
/**
|
|
200
|
+
* Removes the morphological analysis, part of speech, metamorpheme, and metamorphemesmoved layers.
|
|
201
|
+
*/
|
|
39
202
|
morphologicalAnalysisClear(): void;
|
|
203
|
+
/**
|
|
204
|
+
* Removes the metamorpheme at position index.
|
|
205
|
+
* @param index Position of the metamorpheme to be removed.
|
|
206
|
+
* @return Metamorphemes concatenated as a string after the removed metamorpheme.
|
|
207
|
+
*/
|
|
40
208
|
metaMorphemeRemove(index: number): MetamorphicParse;
|
|
209
|
+
/**
|
|
210
|
+
* Checks if the last inflectional group contains VERB tag.
|
|
211
|
+
* @return True if the last inflectional group contains VERB tag, false otherwise.
|
|
212
|
+
*/
|
|
41
213
|
isVerbal(): boolean;
|
|
214
|
+
/**
|
|
215
|
+
* Checks if the last verbal inflectional group contains ZERO tag.
|
|
216
|
+
* @return True if the last verbal inflectional group contains ZERO tag, false otherwise.
|
|
217
|
+
*/
|
|
42
218
|
isNominal(): boolean;
|
|
219
|
+
/**
|
|
220
|
+
* Creates an array list of LayerInfo objects, where each object correspond to one word in the tree node. Turkish
|
|
221
|
+
* words, morphological parses, metamorpheme parses, semantic senses, shallow parses are divided into corresponding
|
|
222
|
+
* words. Named entity tags and propbank arguments are the same for all words.
|
|
223
|
+
* @return An array list of LayerInfo objects created from the layer info of the node.
|
|
224
|
+
*/
|
|
43
225
|
divideIntoWords(): Array<LayerInfo>;
|
|
226
|
+
/**
|
|
227
|
+
* Converts layer info of the word at position wordIndex to an AnnotatedWord. Layers are converted to their
|
|
228
|
+
* counterparts in the AnnotatedWord.
|
|
229
|
+
* @param wordIndex Index of the word to be converted.
|
|
230
|
+
* @return Converted annotatedWord
|
|
231
|
+
*/
|
|
44
232
|
toAnnotatedWord(wordIndex: number): AnnotatedWord;
|
|
45
233
|
}
|