Skip to content

Get up and running with Python's spaCy inside Julia

License

Notifications You must be signed in to change notification settings

joshday/Spacy.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spacy

A lightweight wrapper of the amazing spaCy Python package.

Usage

  • Input
using Spacy

spacy.cli.download("en_core_web_sm")

nlp = spacy.load("en_core_web_sm")

text = """
    When Sebastian Thrun started working on self-driving cars at
    Google in 2007, few people outside of the company took him
    seriously. “I can tell you very senior CEOs of major American
    car companies would shake my hand and turn away because I wasn’t
    worth talking to,” said Thrun, in an interview with Recode earlier
    this week.
    """

doc = nlp(text)

for entity in doc.ents
    println("$(entity.text) ($(entity.label_))")
end
  • Output
Sebastian Thrun (PERSON)
Google (ORG)
2007 (DATE)
American (NORP)
Thrun (PERSON)
Recode (ORG)
this week (DATE)

About

Get up and running with Python's spaCy inside Julia

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages