From 75a40f56fc9803a19f4db459a84a0f847f63f82f Mon Sep 17 00:00:00 2001 From: Abhijit Balaji Date: Tue, 12 Feb 2019 22:34:38 +0530 Subject: [PATCH] added spacy-langdetect to universe.json (#3266) --- website/universe/universe.json | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/website/universe/universe.json b/website/universe/universe.json index 4b5aa2b92..1d5db5830 100644 --- a/website/universe/universe.json +++ b/website/universe/universe.json @@ -1108,6 +1108,35 @@ }, "github": "BramVanroy/spacy_conll", "category": ["standalone"] + }, + { + "id": "spacy-langdetect", + "title": "spacy-langdetect" , + "slogan": "A fully customizable language detection pipeline for spaCy", + "description": "This module allows you to add language detection capabilites to your spaCy pipeline. Also supports custom language detectors!", + "pip": "spacy-langdetect", + "code_example": [ + "import spacy", + "from spacy_langdetect import LanguageDetector", + "nlp = spacy.load('en')", + "nlp.add_pipe(LanguageDetector(), name='language_detector', last=True)", + "text = 'This is an english text.'", + "doc = nlp(text)" + "# document level language detection. Think of it like average language of the document!", + "print(doc._.language)", + "# sentence level language detection", + "for sent in doc.sents:", + " print(sent, sent._.language)" + ], + "code_language": "python", + "author": "Abhijit Balaji", + "author_links": { + "github": "Abhijit-2592", + "website": "https://abhijit-2592.github.io/" + }, + "github": "Abhijit-2592/spacy-langdetect", + "category": ["pipeline"], + "tags": ["language-detection"] } ], "projectCats": {