Skip to content

Commit

Permalink
Removing redirects temporarily for these site (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
KshitizGIT committed May 15, 2023
1 parent 97f9c09 commit c1c9f70
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 14 deletions.
14 changes: 13 additions & 1 deletion docs/_plugins/search_index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@
OUTDATED_EDITIONS = ['Spark NLP 2.0', 'Spark NLP 2.1', 'Healthcare NLP 2.0']
SPARK_NLP_ORIGIN = "https://sparknlp.org"
JOHNSNOWLABS_ORIGIN = "https://nlp.johnsnowlabs.com"
OPEN_SOURCE_MODEL_TO_NOT_REDIRECT = [ "/2020/01/22/glove_100d.html",
"/2021/11/22/lemma_antbnc_en.html",
"/2020/07/14/stopwords_hi.html",
"/2020/12/05/arabic_w2v_cc_300d_ar.html",
"/2022/05/04/bert_ner_ANER_ar_3_0.html",
"/2022/03/07/stopwords_iso_vi_3_0.html",
"/2021/01/03/translate_mul_en_xx.html",
"/2020/04/17/tfhub_use.html",
"/2022/04/01/spellcheck_dl_en_2_4.html",
"/2020/05/03/lemma_nl.html",
"/2021/11/04/bert_sequence_classifier_question_statement_en.html",
"/2021/01/02/sentence_detector_dl_en.html"]

$remote_editions = Set.new

Expand Down Expand Up @@ -387,7 +399,7 @@ def is_latest?(group, model)
name_language_editions_sparkversion_to_models_mapping[key] << model
all_posts_id << model[:id]
# Change redirects for open source model pages
if post.data["origin"] == SPARK_NLP_ORIGIN
if post.data["origin"] == SPARK_NLP_ORIGIN and not OPEN_SOURCE_MODEL_TO_NOT_REDIRECT.include?(post.url)
redirect_to= SPARK_NLP_ORIGIN + post.url
post.content = post.output= %Q(<!DOCTYPE html>
<html lang="en-US">
Expand Down
3 changes: 1 addition & 2 deletions docs/en/CPUvsGPUbenchmark.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
layout: docs
header: true
title: GPU vs CPU benchmark
redirect_to: https://sparknlp.org/docs/en/CPUvsGPUbenchmark
permalink: /docs/en/CPUvsGPUbenchmark
key: docs-concepts
modify_date: "2021-08-31"
Expand Down Expand Up @@ -267,4 +266,4 @@ Right now, we don't support multigpu training (1 model in different GPUs in para
### Where to look for more information about Training
Please, take a look at the [Spark NLP](https://nlp.johnsnowlabs.com/docs/en/training) and [Spark NLP for Healthcare](https://nlp.johnsnowlabs.com/docs/en/licensed_training) Training sections, and feel free to reach us out in case you want to maximize the performance on your GPU.

</div>
</div>
1 change: 0 additions & 1 deletion docs/en/annotators.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
layout: docs
header: true
title: Annotators
redirect_to: https://sparknlp.org/docs/en/annotators
permalink: /docs/en/annotators
key: docs-annotators
modify_date: "2021-04-17"
Expand Down
3 changes: 1 addition & 2 deletions docs/en/concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
layout: docs
header: true
title: General Concepts
redirect_to: https://sparknlp.org/docs/en/concepts
permalink: /docs/en/concepts
key: docs-concepts
modify_date: "2022-12-21"
Expand Down Expand Up @@ -762,4 +761,4 @@ we also use Features, which are a way to store parameter maps that are
larger than just a string or a boolean. These features are serialized
as either Parquet or RDD objects, allowing much faster and scalable
annotator information. Features are also broadcasted among executors for
better performance.
better performance.
3 changes: 1 addition & 2 deletions docs/en/display.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ layout: docs
header: true
seotitle: Spark NLP
title: Spark NLP Display
redirect_to: https://sparknlp.org/docs/en/display
permalink: /docs/en/display
key: docs-display
modify_date: "2020-11-17"
Expand Down Expand Up @@ -175,4 +174,4 @@ The following image gives an example of html output that is obtained for a coupl



</div><div class="h3-box" markdown="1">
</div><div class="h3-box" markdown="1">
1 change: 0 additions & 1 deletion docs/en/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ layout: docs
header: true
seotitle: Spark NLP
title: Installation
redirect_to: https://sparknlp.org/docs/en/install
permalink: /docs/en/install
key: docs-install
modify_date: "2022-12-21"
Expand Down
1 change: 0 additions & 1 deletion docs/en/production-readiness.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ layout: docs
header: true
seotitle: Spark NLP
title: Productionizing Spark NLP
redirect_to: https://sparknlp.org/docs/en/production-readiness
permalink: /docs/en/production-readiness
key: docs-experiment_tracking
modify_date: "2021-11-21"
Expand Down
3 changes: 1 addition & 2 deletions docs/en/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ layout: docs
header: true
title: Quick Start
seotitle: Spark NLP - Getting Started
redirect_to: https://sparknlp.org/docs/en/quickstart
permalink: /docs/en/quickstart
key: docs-quickstart
modify_date: "2021-03-20"
Expand Down Expand Up @@ -89,4 +88,4 @@ be found [HERE](annotators)
</div>


</div>
</div>
1 change: 0 additions & 1 deletion docs/en/training.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ layout: docs
header: true
seotitle: Spark NLP
title: Training
redirect_to: https://sparknlp.org/docs/en/training
permalink: /docs/en/training
key: docs-training
modify_date: "2019-10-23"
Expand Down
1 change: 0 additions & 1 deletion docs/en/transformers.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ layout: docs
header: true
seotitle: Spark NLP
title: Transformers
redirect_to: https://sparknlp.org/docs/en/transformers
permalink: /docs/en/transformers
key: docs-transformers
modify_date: "2022-09-27"
Expand Down

0 comments on commit c1c9f70

Please sign in to comment.