Sha256: b697d57a31113d68a57f3674a3483d0b9cbfaceaafee5dc359be1c264ef9d56c
Contents?: true
Size: 380 Bytes
Versions: 6
Compression:
Stored size: 380 Bytes
Contents
require "ruby-spacy" nlp = Spacy::Language.new("en_core_web_sm") sentence ="When Sebastian Thrun started working on self-driving cars at Google in 2007, few people outside of the company took him seriously." doc = nlp.read(sentence) ent_html = doc.displacy(style: 'ent') File.open(File.join(File.dirname(__FILE__), "test_ent.html"), "w") do |file| file.write(ent_html) end
Version data entries
6 entries across 6 versions & 1 rubygems