Skip to content

Commit b94a784

Browse files
author
Hamed
committed
fix #4: fix typo and add stemmer outputs
1 parent b0ea2e0 commit b94a784

2 files changed

Lines changed: 45 additions & 16 deletions

File tree

content/main.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ Console.WriteLine(resp);
651651

652652
```python
653653

654-
########################## Call Stemmer ##########################
654+
########################## Call SpellCorrector ##########################
655655
url = baseUrl + "TextRefinement/SpellCorrector"
656656
payload = u'''{\"text\": \"فهوه با مبات میجسبد\",
657657
\"checkSlang\": true,
@@ -1199,6 +1199,8 @@ try {
11991199
از این تابع برای ریشه‌یابی عبارات استفاده می‌شود.
12001200
به عنوان مثال، خروجی متن کد نمونه به شکل زیر است
12011201

1202+
`[ { "wordComment": "", "simplePos": "", "rootWords": ["دریانورد", "دریا"], "verbInformation": null, "sentenceNumber": 0, "wordNumberInSentence": 0, "startCharIndex": 0, "word": "دریانوردانی", "tags": null, "firstRoot": "دریانورد", "wordCount": 1, "length": 11, "isVerb": false, "isPunc": false }, { "wordComment": "", "simplePos": "", "rootWords": ["فرشته"], "verbInformation": null, "sentenceNumber": 0, "wordNumberInSentence": 0, "startCharIndex": 0, "word": "فرشتگان", "tags": null, "firstRoot": "فرشته", "wordCount": 1, "length": 7, "isVerb": false, "isPunc": false } ]`
1203+
12021204
```csharp
12031205

12041206
string baseAddress = "https://api.text-mining.ir/api/";
@@ -1289,7 +1291,10 @@ try {
12891291
## ریشه یابی متن
12901292

12911293
برای نمایش ریشه افعال شکل گذشته ساده درنظر گرفته میشود و سایر اطلاعات صرفی فعل در متغیر ذیل وجود دارد:
1292-
verbInformation
1294+
1295+
خروجی کد نمونه به شرح زیر است:
1296+
1297+
‍‍‍‍‍`{دانشجویان,[دانشجو,دانش,دان]} {زیادی,[زیاد]} {به,[به]} {مدارس,[مدرسه]} {استعدادهای,[استعداد]} {درخشان,[درخشان]} {راه,[راه]} {پیدا,[پیدا]} {نخواهند کرد,[نکرد]} {که,[که]} {با,[با]} {مشکلات,[مشکل]} {بعدی,[بعد]} {مواجه,[مواجه]} {شوند,[شد]} {.,[]}`
12931298

12941299
```csharp
12951300

@@ -1475,6 +1480,10 @@ try {
14751480

14761481
لیستی از کلمات ورودی را ریشه‌یابی می‌کند.
14771482

1483+
خروجی کد نمونه به شرح زیر است:
1484+
1485+
‍`[ { "wordComment":"مشاجرات", "simplePos":"", "rootWords":[ "مشاجرات", "مشاجره" ], "verbInformation":null, "sentenceNumber":1, "wordNumberInSentence":0, "startCharIndex":0, "word":"مشاجرات", "tags":{ }, "firstRoot":"مشاجرات", "wordCount":1, "length":7, "isVerb":false, "isPunc":false }, { "wordComment":"دریانوردانی", "simplePos":"", "rootWords":[ "دریانورد", "دریا" ], "verbInformation":null, "sentenceNumber":1, "wordNumberInSentence":1, "startCharIndex":8, "word":"دریانوردانی", "tags":{ }, "firstRoot":"دریانورد", "wordCount":1, "length":11, "isVerb":false, "isPunc":false }, { "wordComment":"جزایر", "simplePos":"", "rootWords":[ "جزیره" ], "verbInformation":null, "sentenceNumber":1, "wordNumberInSentence":2, "startCharIndex":20, "word":"جزایر", "tags":{ }, "firstRoot":"جزیره", "wordCount":1, "length":5, "isVerb":false, "isPunc":false }, { "wordComment":"فرشتگان", "simplePos":"", "rootWords":[ "فرشته" ], "verbInformation":null, "sentenceNumber":1, "wordNumberInSentence":3, "startCharIndex":26, "word":"فرشتگان", "tags":{ }, "firstRoot":"فرشته", "wordCount":1, "length":7, "isVerb":false, "isPunc":false }, { "wordComment":"تنها", "simplePos":"", "rootWords":[ "تنها" ], "verbInformation":null, "sentenceNumber":1, "wordNumberInSentence":4, "startCharIndex":34, "word":"تنها", "tags":{ }, "firstRoot":"تنها", "wordCount":1, "length":4, "isVerb":false, "isPunc":false } ]`
1486+
14781487
```csharp
14791488

14801489
string baseAddress = "https://api.text-mining.ir/api/";
Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,39 @@
1-
body,html,h1,h2,h3,h4,h5,h6{
2-
font-family: Vazir !important;
1+
body,
2+
html,
3+
h1,
4+
h2,
5+
h3,
6+
h4,
7+
h5,
8+
h6 {
9+
font-family: Vazir !important;
310
}
4-
.content p,.content aside, h1,h2,h3,h4,h5,h6,
5-
.tocify-wrapper .tocify-item>a,.tocify-wrapper .toc-footer li,
6-
.tocify-wrapper .toc-footer a,
7-
.content table, .content table td,
8-
.content table th, ul li{
9-
direction: rtl ;text-align: right;
11+
.content p,
12+
.content aside,
13+
h1,
14+
h2,
15+
h3,
16+
h4,
17+
h5,
18+
h6,
19+
.tocify-wrapper .tocify-item > a,
20+
.tocify-wrapper .toc-footer li,
21+
.tocify-wrapper .toc-footer a,
22+
.content table,
23+
.content table td,
24+
.content table th,
25+
ul li {
26+
direction: rtl;
27+
text-align: right;
1028
}
11-
.content code, .content p code{
12-
direction: ltr;text-align: left;
29+
.content code,
30+
.content p code {
31+
direction: ltr;
32+
text-align: left;
1333
}
14-
.content table{
15-
overflow: inherit;
34+
.content table {
35+
overflow: inherit;
1636
}
17-
.content p{
18-
line-height: 2em;
37+
.content p {
38+
line-height: 2em;
1939
}

0 commit comments

Comments
 (0)