- Fixed a bug in
spacy_download_langmodel()
that prevented installing multiple models in one function call (#249)
- Overhauled the
spacy_install()
andspacy_uninstall()
functions to provide a more modern and robust installation procedure.
- Added an option for using conda package manager instead of
pip
inspacy_install()
andspacy_upgrade()
. - (1.21) All character inputs to
spacy_parse()
andspacy_tokenize()
are now coerced tocharacter
, which allows them to work directly with quanteda v2 corpus objects (which are based on thecharacter
class but with special attributed), without special methods.
- 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 throughspacy_install()
exists. - General stability enhancements to ensure compatibility with spaCy >= 2.1
- 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 a vignette and significantly improved the documentation site https://spacyr.quanteda.io.
- 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 themultithreading
argument. This uses the "pipes" functionality in spaCy for improved performance.
- Create an option to permanently set the default Python through
.Rprofile
- Performance enhancement through
spacy_initialize(entity = FALSE)
(#91) - Now looks for Python settings from
.bash_profile
.
- Updated for the newer spaCy 2.0 release and new language models.
- Add
ask = FALSE
tospacy_initialize()
, to find spaCy installations automatically.
- Fixed a bug caused by zero-token "sentences" in
spacy_parse()
, by changing1:length()
toseq_along()
.
- Fixed a bug causing non-ASCII characters to be dropped when using Python 2.7.x (#58).
- Fixed issue with automatic detection of python3 when both python and python3 exist, but only python3 has spaCy installed (#62).
- Initial CRAN release.