Pipeline to Detect Restaurant-related Terminology

Description

This pretrained pipeline is built on the top of nerdl_restaurant_100d model.

Predicted Entities

Live Demo Open in Colab Download Copy S3 URI

How to use


restaurant_pipeline = PretrainedPipeline("nerdl_restaurant_100d_pipeline", lang = "en")

restaurant_pipeline.annotate("Hong Kong’s favourite pasta bar also offers one of the most reasonably priced lunch sets in town! With locations spread out all over the territory Sha Tin – Pici’s formidable lunch menu reads like a highlight reel of the restaurant. Choose from starters like the burrata and arugula salad or freshly tossed tuna tartare, and reliable handmade pasta dishes like pappardelle. Finally, round out your effortless Italian meal with a tidy one-pot tiramisu, of course, an espresso to power you through the rest of the day.")

val restaurant_pipeline = new PretrainedPipeline("nerdl_restaurant_100d_pipeline", lang = "en")

restaurant_pipeline.annotate("Hong Kong’s favourite pasta bar also offers one of the most reasonably priced lunch sets in town! With locations spread out all over the territory Sha Tin – Pici’s formidable lunch menu reads like a highlight reel of the restaurant. Choose from starters like the burrata and arugula salad or freshly tossed tuna tartare, and reliable handmade pasta dishes like pappardelle. Finally, round out your effortless Italian meal with a tidy one-pot tiramisu, of course, an espresso to power you through the rest of the day.")

Results


+---------------------------+---------------+
|chunk                      |ner_label      |
+---------------------------+---------------+
|Hong Kong’s                |Restaurant_Name|
|favourite                  |Rating         |
|pasta bar                  |Dish           |
|most reasonably            |Price          |
|lunch                      |Hours          |
|in town!                   |Location       |
|Sha Tin – Pici’s           |Restaurant_Name|
|burrata                    |Dish           |
|arugula salad              |Dish           |
|freshly tossed tuna tartare|Dish           |
|reliable                   |Price          |
|handmade pasta             |Dish           |
|pappardelle                |Dish           |
|effortless                 |Amenity        |
|Italian                    |Cuisine        |
|tidy one-pot               |Amenity        |
|espresso                   |Dish           |
+---------------------------+---------------+

Model Information

Model Name: nerdl_restaurant_100d_pipeline
Type: pipeline
Compatibility: Spark NLP 4.0.0+
License: Open Source
Edition: Official
Language: en
Size: 166.7 MB

Included Models

  • DocumentAssembler
  • SentenceDetector
  • TokenizerModel
  • WordEmbeddingsModel
  • NerDLModel
  • NerConverter
  • Finisher