spacy
Here are 490 public repositories matching this topic...
Description of Problem:
Had to add a Facebook messenger channel integration into a bot I spun up and found the Facebook Messenger docs lacking a bit especially on the special response template keys quick_replies and elements; I had to read through the Facebook channel source to figure out what was allowed/disallowed.
Overview of the Solution:
FB Messenger docs updated with additio
Code:
nlp = spacy.load('en_core_web_sm')
coref = neuralcoref.NeuralCoref(nlp.vocab)
nlp.add_pipe(coref, name='neuralcoref')
doc = nlp("She loves him.")
print(len(doc._.coref_clusters), 'clusters')
doc = nlp("My sister has a dog. She loves him.")
print(len(doc._.coref_clusters), 'clusters')
doc = doc[7].sent.as_doc()
print(len(doc._.coref_clusters), 'clusters')Outpu
Breaks Displacy
-
Updated
May 18, 2020 - Python
-
Updated
May 18, 2020 - Python
Duplicate from issue #192 (solved in 2018) but cannot apply solution on textacy 0.10
Hi, I'm using Textacy on Google Colab environment, running a default hosted runtim, installed through !pip3 install textacy
I've run into the same problem as the OP in #192 , I'm following the official document examples, version installed is the latest (textacy-0.10.0).
When trying dir(textacy) this the o
I wanted to use pytextrank together with spacy_udpipe to get keywords from texts in other languages (see https://stackoverflow.com/questions/59824405/spacy-udpipe-with-pytextrank-to-extract-keywords-from-non-english-text) but I realized, that udpipe-spacy somehow "overrides" the original spacy's pipeline so the noun_chunks are not generated (btw: the noun_chunks are created in lang/en/syntax_itera
The two os.system(cmd) portions of the 04_fasttext_train_vectors.py script on lines 61-67 and [lines 75-81](https://github.com/explosion/sense2vec/blob/5a034ae63db3cdb572ad0cff3562
Add the ability to answer weather forecast questions. DO NOT USE any API key because Dragonfire is an application that runs on the client's machine.
This is also on page 356.
from nltk.corpus import sentiwordnet as swn
good = swn.senti_synsets('good', 'n')[0]
Traceback (most recent call last):
File "", line 1, in
TypeError: 'filter' object is not subscriptable
Hi,
I noticed that I cannot use nlp.update with Doc as inputs instead of raw strings. Please refer to the mini example below:
from spacy_transformers.language import TransformersLanguage
from spacy_transformers.pipeline.wordpiecer import TransformersWordPiecer
from spacy_transformers.pipeline.tok2vec import TransformersTok2Vec
nlp = TransformersLanguage(trf_name='test_bert', meta
-
Updated
Mar 12, 2020 - Python
Saving and Loading
First of all, thanks for creating scispacy, I think it's an amazing tool and very useful!!
I was running into an issue when saving the output of scispacy. I tried to pickle a Doc object, as explained on the website of spaCy, as follows:
import spacy
import pickle
nlp = spacy.load("en_core_sci_sm")
# add the Abbreviation Detector
abbrev
Would it be possible to make this compatible with spacy v2.1 ? Trying to use this for geoparsing but I am using spacy v2.1 and the newer "en_core_web_lg" model for other downstream tasks. Since Mordecai is not compatible with spacy 2.1 yet, it tries to downgrade to spacy 2.0 and requires the older models at the moment.
spaCy version: 2.1.9
spaCy-stanza version: 0.2.1
import stanza
from spacy_stanza import StanzaLanguage
stanza.download('ru')
snlp = stanza.Pipeline(lang="ru")
nlp = StanzaLanguage(snlp)
text = "Мама мыла раму"Using stanza, i get this:
for sentence in snlp(text).senteces:
for word in sentence.words:
print(word.feats)
# Animacy=Anim|Case=Nom|Gender=Invalid Answers
When asking: "Who was the first president of the United States?"
The answer is:
Normally vice presidents hold some power and special responsibilities below that of the president. The amendment also specifies that if any eligible person serves as president or acting president for more than two years of a term for which some other eligible person was elected president, the former can only be e
-
Updated
Apr 8, 2018 - JavaScript
-
Updated
Mar 31, 2020 - Jupyter Notebook
Hello,
Using the code from https://github.com/explosion/spacy-notebooks/blob/master/notebooks/conference_notebooks/modern_nlp_in_python.ipynb (I think, it is not loading right now)
I was attempting to run the tutorial on my own collection of documents with the following three functions:
def punct_space(token):
"""
helper function to eliminate tokens
that are pure punct
I have been trying to use a custom NER model for spacy-services with the name 'endec'.When I try to use it directly by loading it in displacy/app.py, I get the following error:
`Traceback (most recent call last):
File "app.py", line 4, in
get_model('endec')
File "/home/prgs/spacy-services/displacy/displacy_service/server.py", line 36, in get_model
_models[model_name] =
-
Updated
Jan 3, 2020 - Python
-
Updated
Jan 5, 2020 - Python
-
Updated
Mar 3, 2019 - Python
-
Updated
Apr 8, 2018 - CSS
Improve this page
Add a description, image, and links to the spacy topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the spacy topic, visit your repo's landing page and select "manage topics."
I was going though the existing enhancement issues again and though it'd be nice to collect ideas for spaCy plugins and related projects. There are always people in the community who are looking for new things to build, so here's some inspiration✨ For existing plugins and projects, check out the spaCy universe.
If you have questions about the projects I suggested,