Sha256: 1fdf3ffd7796193d88f1640e325e3372a28fc41bf1354f84d8958a9b53e9dd8c

Contents?: true

Size: 345 Bytes

Versions: 2

Compression:

Stored size: 345 Bytes

Contents

# frozen_string_literal: true

# add path to ruby-spacy lib to load path
$LOAD_PATH.unshift(File.expand_path("../../lib", __dir__))

require "ruby-spacy"

nlp = Spacy::Language.new("en_core_web_sm")
doc = nlp.read("I love coffee")

pp doc.vocab.strings["coffee"]
pp doc.vocab.strings[3_197_928_453_018_144_401]

# 3197928453018144401
# "coffee"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby-spacy-0.2.3 examples/get_started/vocab.rb
ruby-spacy-0.2.2 examples/get_started/vocab.rb