nlptoolkit-postagger 1.0.0 → 1.0.1
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 +11 -11
- package/package.json +8 -6
package/README.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
+
Pos Tagging
|
|
2
|
+
============
|
|
3
|
+
|
|
1
4
|
This is a tool meant for tagging words with their part-of-speech, a grammatical category based on their function within a sentence, such as noun, adjective, verb, and so forth.
|
|
2
5
|
|
|
6
|
+
Video Lectures
|
|
7
|
+
============
|
|
8
|
+
|
|
9
|
+
[<img src="https://github.com/StarlangSoftware/EnglishPosTagger/blob/master/video1.jpg" width="50%">](https://youtu.be/gQmc7Nhwhuk)[<img src="https://github.com/StarlangSoftware/EnglishPosTagger/blob/master/video2.jpg" width="50%">](https://youtu.be/GHUib73MRks)
|
|
10
|
+
|
|
3
11
|
For Developers
|
|
4
12
|
============
|
|
5
13
|
|
|
@@ -58,19 +66,11 @@ Detailed Description
|
|
|
58
66
|
|
|
59
67
|
To train the PosTagger which is used for English pos tagging
|
|
60
68
|
|
|
61
|
-
train(
|
|
62
|
-
|
|
63
|
-
To save the trained PosTagger model
|
|
64
|
-
|
|
65
|
-
saveModel(self)
|
|
66
|
-
|
|
67
|
-
To load an already trained PosTagger model
|
|
68
|
-
|
|
69
|
-
loadModel(self)
|
|
70
|
-
|
|
69
|
+
train(corpus: PosTaggedCorpus): void;
|
|
70
|
+
|
|
71
71
|
To tag a sentence, using a newly trained or loaded PosTagger model
|
|
72
72
|
|
|
73
|
-
posTag(
|
|
73
|
+
posTag(sentence: Sentence): Sentence;
|
|
74
74
|
|
|
75
75
|
3 different PosTagger models are supported: The one that is used to tag the sentences with a random tag
|
|
76
76
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nlptoolkit-postagger",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.js",
|
|
@@ -20,12 +20,14 @@
|
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/mocha": "^9.0.0",
|
|
22
22
|
"mocha": "^9.1.3",
|
|
23
|
-
"nlptoolkit-corpus": "^1.0.0",
|
|
24
|
-
"nlptoolkit-datastructure": "^1.0.0",
|
|
25
|
-
"nlptoolkit-dictionary": "^1.0.1",
|
|
26
|
-
"nlptoolkit-hmm": "^1.0.0",
|
|
27
|
-
"nlptoolkit-math": "^1.0.0",
|
|
28
23
|
"ts-node": "^10.4.0",
|
|
29
24
|
"typescript": "^4.5.2"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"nlptoolkit-corpus": "^1.0.9",
|
|
28
|
+
"nlptoolkit-datastructure": "^1.0.4",
|
|
29
|
+
"nlptoolkit-dictionary": "^1.0.9",
|
|
30
|
+
"nlptoolkit-hmm": "^1.0.1",
|
|
31
|
+
"nlptoolkit-math": "^1.0.2"
|
|
30
32
|
}
|
|
31
33
|
}
|