From 2bdfa42107478bddaf9b9d8a8aa1c299eb40cde6 Mon Sep 17 00:00:00 2001 From: Yoichiro Hasebe Date: Sun, 4 Jul 2021 08:44:39 +0900 Subject: [PATCH 1/2] Update universe.json --- website/meta/universe.json | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/website/meta/universe.json b/website/meta/universe.json index 20a813569..b095aaa9f 100644 --- a/website/meta/universe.json +++ b/website/meta/universe.json @@ -1329,6 +1329,35 @@ }, "category": ["nonpython"] }, + { + "id": "ruby-spacy", + "title": "ruby-spacy", + "slogan": "Wrapper module for using spaCy from Ruby via PyCall", + "description": "ruby-spacy is a wrapper module for using spaCy from the Ruby programming language via PyCall. This module aims to make it easy and natural for Ruby programmers to use spaCy.", + "github": "https://github.com/yohasebe/ruby-spacy", + "code_example": [ + "require \"ruby-spacy\"", + "require \"terminal-table\"", + "nlp = Spacy::Language.new(\"en_core_web_sm\")", + "doc = nlp.read(\"Apple is looking at buying U.K. startup for $1 billion\")", + "headings = [\"text\", \"lemma\", \"pos\", \"tag\", \"dep\"]", + "rows = []", + "doc.each do |token|", + " rows << [token.text, token.lemma, token.pos, token.tag, token.dep]", + "end", + "table = Terminal::Table.new rows: rows, headings: headings", + "puts table" + ], + "code_language": "ruby", + "url": "https://rubygems.org/gems/ruby-spacy", + "author": "Yoichiro Hasebe", + "author_links": { + "github": "yohasebe", + "twitter": "yohasebe" + }, + "category": ["nonpython"], + "tags": ["ruby"] + }, { "id": "spacy_api", "slogan": "Server/client to load models in a separate, dedicated process", From 596e04cbb490f09eb0d96822a4ef15e6518f834e Mon Sep 17 00:00:00 2001 From: Yoichiro Hasebe Date: Sun, 4 Jul 2021 18:55:17 +0900 Subject: [PATCH 2/2] Github repo info fixed for ruby-spacy --- website/meta/universe.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/meta/universe.json b/website/meta/universe.json index b095aaa9f..b4e921ce3 100644 --- a/website/meta/universe.json +++ b/website/meta/universe.json @@ -1334,7 +1334,7 @@ "title": "ruby-spacy", "slogan": "Wrapper module for using spaCy from Ruby via PyCall", "description": "ruby-spacy is a wrapper module for using spaCy from the Ruby programming language via PyCall. This module aims to make it easy and natural for Ruby programmers to use spaCy.", - "github": "https://github.com/yohasebe/ruby-spacy", + "github": "yohasebe/ruby-spacy", "code_example": [ "require \"ruby-spacy\"", "require \"terminal-table\"",