From 044beca7d521eaa3d6d038f04a948bf83a0f6fc9 Mon Sep 17 00:00:00 2001 From: diatrambitas Date: Tue, 10 Nov 2020 14:27:15 +0200 Subject: [PATCH] [skip travis] emotions models fixes --- .../2020-07-03-classifierdl_use_cyberbullying_en.md | 12 +++++++++--- .../_posts/2020-07-03-classifierdl_use_emotion_en.md | 9 ++++++--- .../2020-07-03-classifierdl_use_fakenews_en.md | 8 ++++---- .../_posts/2020-07-03-classifierdl_use_sarcasm_en.md | 7 ++++--- docs/_posts/2020-07-03-classifierdl_use_spam_en.md | 7 ++++--- 5 files changed, 27 insertions(+), 16 deletions(-) diff --git a/docs/_posts/2020-07-03-classifierdl_use_cyberbullying_en.md b/docs/_posts/2020-07-03-classifierdl_use_cyberbullying_en.md index 9e268b8cd6fd79..d4088a088675d9 100644 --- a/docs/_posts/2020-07-03-classifierdl_use_cyberbullying_en.md +++ b/docs/_posts/2020-07-03-classifierdl_use_cyberbullying_en.md @@ -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}
[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}
+[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
@@ -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 ```
{:.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 | diff --git a/docs/_posts/2020-07-03-classifierdl_use_emotion_en.md b/docs/_posts/2020-07-03-classifierdl_use_emotion_en.md index e27d3116fe269e..dccfe9dd020c88 100644 --- a/docs/_posts/2020-07-03-classifierdl_use_emotion_en.md +++ b/docs/_posts/2020-07-03-classifierdl_use_emotion_en.md @@ -53,23 +53,26 @@ annotations = light_pipeline.fullAnnotate('@Mira I just saw you on live t.v!!') ``` ```scala ``` + {:.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 | diff --git a/docs/_posts/2020-07-03-classifierdl_use_fakenews_en.md b/docs/_posts/2020-07-03-classifierdl_use_fakenews_en.md index aa2f67d73beb27..bffa471e00c7d1 100644 --- a/docs/_posts/2020-07-03-classifierdl_use_fakenews_en.md +++ b/docs/_posts/2020-07-03-classifierdl_use_fakenews_en.md @@ -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 | diff --git a/docs/_posts/2020-07-03-classifierdl_use_sarcasm_en.md b/docs/_posts/2020-07-03-classifierdl_use_sarcasm_en.md index ae2c8730c8f515..664e47aedfa054 100644 --- a/docs/_posts/2020-07-03-classifierdl_use_sarcasm_en.md +++ b/docs/_posts/2020-07-03-classifierdl_use_sarcasm_en.md @@ -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 | diff --git a/docs/_posts/2020-07-03-classifierdl_use_spam_en.md b/docs/_posts/2020-07-03-classifierdl_use_spam_en.md index 9da77602dafdfc..4276c9935d58e4 100644 --- a/docs/_posts/2020-07-03-classifierdl_use_spam_en.md +++ b/docs/_posts/2020-07-03-classifierdl_use_spam_en.md @@ -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 |