Skip to content

Commit

Permalink
Merge pull request #1148 from JohnSnowLabs/website_updates
Browse files Browse the repository at this point in the history
[skip travis]  emotions models fixes
  • Loading branch information
diatrambitas authored Nov 10, 2020
2 parents dbf0df7 + 044beca commit a36aeb3
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 16 deletions.
12 changes: 9 additions & 3 deletions docs/_posts/2020-07-03-classifierdl_use_cyberbullying_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ Identify Racism, Sexism or Neutral tweets.
neutral, racism, sexism

{:.btn-box}
[Live Demo](https://demo.johnsnowlabs.com/public/SENTIMENT_EN_CYBERBULLYING/){:.button.button-orange}<br/>[Open in Colab](https://colab.research.google.com/github/JohnSnowLabs/spark-nlp-workshop/blob/master/tutorials/streamlit_notebooks/SENTIMENT_EN_CYBERBULLYING.ipynb){:.button.button-orange.button-orange-trans.co.button-icon}<br/>[Download](https://s3.amazonaws.com/auxdata.johnsnowlabs.com/public/models/classifierdl_use_cyberbullying_en_2.5.3_2.4_1593783319298.zip){:.button.button-orange.button-orange-trans.arr.button-icon}<br/>
[Live Demo](https://demo.johnsnowlabs.com/public/SENTIMENT_EN_CYBERBULLYING/){:.button.button-orange}
[Open in Colab](https://colab.research.google.com/github/JohnSnowLabs/spark-nlp-workshop/blob/master/tutorials/streamlit_notebooks/SENTIMENT_EN_CYBERBULLYING.ipynb){:.button.button-orange.button-orange-trans.co.button-icon}
[Download](https://s3.amazonaws.com/auxdata.johnsnowlabs.com/public/models/classifierdl_use_cyberbullying_en_2.5.3_2.4_1593783319298.zip){:.button.button-orange.button-orange-trans.arr.button-icon}

## How to use
<div class="tabs-box" markdown="1">
Expand Down Expand Up @@ -50,24 +52,28 @@ light_pipeline = LightPipeline(nlp_pipeline.fit(spark.createDataFrame([['']]).to

annotations = light_pipeline.fullAnnotate('@geeky_zekey Thanks for showing again that blacks are the biggest racists. Blocked')

```
```scala
```

</div>

{:.h2_title}
## Results
{:.table-model}
```bash
+--------------------------------------------------------------------------------------------------------+------------+
|document |class |
+--------------------------------------------------------------------------------------------------------+------------+
|@geeky_zekey Thanks for showing again that blacks are the biggest racists. Blocked. | racism |
+--------------------------------------------------------------------------------------------------------+------------+
```


{:.model-param}
## Model Information

{:.table-model}
|-------------------------|--------------------------------|
|---|---|
| Model Name | classifierdl_use_cyberbullying |
| Model Class | ClassifierDLModel |
| Spark Compatibility | 2.5.3 |
Expand Down
9 changes: 6 additions & 3 deletions docs/_posts/2020-07-03-classifierdl_use_emotion_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,23 +53,26 @@ annotations = light_pipeline.fullAnnotate('@Mira I just saw you on live t.v!!')
```
```scala
```

</div>

{:.h2_title}
## Results
{:.table-model}

```bash
+------------------------------------------------------------------------------------------------+------------+
|document |class |
+------------------------------------------------------------------------------------------------+------------+
|@Mira I just saw you on live t.v!! | joy |
+------------------------------------------------------------------------------------------------+------------+

```


{:.model-param}
## Model Information

{:.table-model}
|-------------------------|------------------------------|
|---|---|
| Model Name | classifierdl_use_emotion |
| Model Class | ClassifierDLModel |
| Spark Compatibility | 2.5.3 |
Expand Down
8 changes: 4 additions & 4 deletions docs/_posts/2020-07-03-classifierdl_use_fakenews_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,18 @@ annotations = light_pipeline.fullAnnotate('Donald Trump a KGB Spy? 11/02/2016 In

{:.h2_title}
## Results
{:.table-model}
```bash
+--------------------------------------------------------------------------------------------------------+------------+
|document |class |
+--------------------------------------------------------------------------------------------------------+------------+
|Donald Trump a KGB Spy? 11/02/2016 In today’s video, Christopher Greene of AMTV reports Hillary Clinton | FAKE |
+--------------------------------------------------------------------------------------------------------+------------+


```
{:.model-param}
## Model Information

{:.table-model}
|-------------------------|---------------------------|
|---|---|
| Model Name | classifierdl_use_fakenews |
| Model Class | ClassifierDLModel |
| Spark Compatibility | 2.5.3 |
Expand Down
7 changes: 4 additions & 3 deletions docs/_posts/2020-07-03-classifierdl_use_sarcasm_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,19 @@ annotations = light_pipeline.fullAnnotate('If I could put into words how much I

{:.h2_title}
## Results
{:.table-model}
```bash
+--------------------------------------------------------------------------------------------------------+------------+
|document |class |
+--------------------------------------------------------------------------------------------------------+------------+
|If I could put into words how much I love waking up at am on Tuesdays I would | sarcasm |
+--------------------------------------------------------------------------------------------------------+------------+

```

{:.model-param}
## Model Information

{:.table-model}
|-------------------------|--------------------------|
|---|---|
| Model Name | classifierdl_use_sarcasm |
| Model Class | ClassifierDLModel |
| Spark Compatibility | 2.5.3 |
Expand Down
7 changes: 4 additions & 3 deletions docs/_posts/2020-07-03-classifierdl_use_spam_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,20 @@ annotations = light_pipeline.fullAnnotate('Congratulations! You've won a $1,000

{:.h2_title}
## Results
{:.table-model}
```bash
+------------------------------------------------------------------------------------------------+------------+
|document |class |
+------------------------------------------------------------------------------------------------+------------+
|Congratulations! You've won a $1,000 Walmart gift card. Go to http://bit.ly/1234 to claim now. | spam |
+------------------------------------------------------------------------------------------------+------------+

```


{:.model-param}
## Model Information

{:.table-model}
|-------------------------|-----------------------|
|---|---|
| Model Name | classifierdl_use_spam |
| Model Class | ClassifierDLModel |
| Spark Compatibility | 2.5.3 |
Expand Down

0 comments on commit a36aeb3

Please sign in to comment.