Overhauled the spacy_install() andspacy_uninstall() functions to provide a more modern and robust installation procedure.
spacyr v1.2
Added an option for using conda package manager instead ofpip in spacy_install() andspacy_upgrade().
(1.21) All character inputs to spacy_parse() andspacy_tokenize() are now coerced to character, which allows them to work directly with quanteda v2 corpus objects (which are based on the character class but with special attributed), without special methods.
spacyr v1.1
Fixed a bug in spacy_parse(x, nounphrase = TRUE) that occurred when no noun phrases were found in the text. (#153)
Fixed a bug in spacy_initialize() (#157).spacy_initialize() ignored Python options supplied by users when a conda environment created through spacy_install()exists.
General stability enhancements to ensure compatibility with spaCy >= 2.1
spacyr v1.0
Added new commands spacy_tokenize(),spacy_extract_entity(),spacy_extract_nounphrases(),nounphrase_extract(), andnounphrase_consolidate() for direct extraction of entities, noun phrases, and tokens, and extraction of noun phrases from spacyr parsed tests.
Added a new argument additional_attributes tospacy_parse() allowing the return of any tokens-level attribute available from https://spacy.io/api/token#attributes.
Added spacy_install(),spacy_install_virtualenv(), andspacy_upgrade() to make installing or upgrading spaCy (and Python itself) easy and automatic.
Added support for multithreading in spacy_parse() via the multithreading argument. This uses the “pipes” functionality in spaCy for improved performance.
spacyr v0.9.6
Create an option to permanently set the default Python through.Rprofile