News for hackers. Stuff that matters.
Re:SpaCy v3.0 Nightly by eob on Thursday October 15, 2020 @12:28PM (#24790424)
I’m constantly blown away at how high quality SpaCy is with such a small team. Everything: from API design, to documentation, to education, to tool ecosystem.

Congrats on the (preview) release and thank you for the great software. Exciting to see SpaCy pull transformers into the mix!

Re:SpaCy v3.0 Nightly by CoffeePython on Thursday October 15, 2020 @12:47PM (#24790694)
I’d definitely second this. I’m no NLP expert by any means but SpaCy makes it so easy to hit the ground running and start doing interesting things with NLP.

I was very surprised to see how small the team was but it looks like they have some great talent. A little bit off topic but the FastAPI creator works at explosion. Using FastAPI has been the most enjoyable Python web development experiences for me.

Re:SpaCy v3.0 Nightly by adampk on Thursday October 15, 2020 @12:49PM (#24790708)
The documentation is accessible and the examples are informative. Most approachable NLP toolset I have seen.
Re:SpaCy v3.0 Nightly by pabs3 on Thursday October 15, 2020 @11:55PM (#24797292)
I wish the team was a little bit less hostile to redistributors :/
Re:SpaCy v3.0 Nightly by The_rationalist on Thursday October 15, 2020 @12:36PM (#24790537)
High quality what? Spacy doesn't has autocompletion and it's the 21st century, only a python package can achieve such prodigy
Re:SpaCy v3.0 Nightly by youngNed on Thursday October 15, 2020 @01:21PM (#24791112)
Now we're all playing "what is (s)he talking about?"

I'm gonna go for: "spyder"

Final answer

Re:SpaCy v3.0 Nightly by The_rationalist on Thursday October 15, 2020 @03:10PM (#24792546)
Ok so I'll break it down for you: Spacy doesn't has autocompletion means that when you use Spacy or any other data structure from spacy you won't have any autocompletion that allow you to know the API you're using. Not on any IDE I've tried and even on the simplest examples.

Was it too hard to understand or the reality is too ridiculous to even think about it being true? A friend of me had the same problem so I think everybody has it, if you have autocompletion when using Spacy then say it so you would add intellectual value to the thread by constraining the scope of this existential bug for the python Nlp industry.

Re:SpaCy v3.0 Nightly by Barrin92 on Thursday October 15, 2020 @08:29PM (#24796056)
>Spacy doesn't has autocompletion

Python libraries don't implement autocompletion, language servers or completion engines do. I suggest you configure your editor correctly, because spacy works just fine with vscode vim, or whatever have you.

Re:SpaCy v3.0 Nightly by nl on Thursday October 15, 2020 @07:25PM (#24795556)
I was sure I've had autocomplete work for me, so I just tested with this nightly release and VS.Code and it works fine for me.

Here's a screenshot: https://imgur.com/a/9bcgPkz

There's a lot that can go wrong with getting Python autocomplete working, and it's possible you are seeing something different. But I would suggest it is environmental rather than something Spacy is doing.

Re:SpaCy v3.0 Nightly by The_rationalist on Thursday October 15, 2020 @12:45PM (#24790652)
You can downvote but this is the cold hard truth
Re:SpaCy v3.0 Nightly by minimaxir on Thursday October 15, 2020 @12:55PM (#24790793)
You are likely getting downvoted because your complaint doesn't make any sense.

Autocompletion isn't a standard feature of any major NLP library, and blaming it on Python (currently the most popular language for NLP) isn't a good argument.

Re:SpaCy v3.0 Nightly by The_rationalist on Thursday October 15, 2020 @03:02PM (#24792464)
Autocompletion isn't a standard feature of any major NLP library, and blaming it on Python (currently the most popular language for NLP) isn't a good argument.

I install a package (spacy) I don't get any autocompletion of the API from the main spacy object and any other subsequent spacy data structure. Indeed autocompletion is usually on the language side but here it's a combination of the weaknesses of python and of the lazyness of spacy developers by making everything dynamic they broke the autocompletion that is normally working in python. Therefore it's not production ready, what else is there to say? I tried both pycharm and vscode

Re:SpaCy v3.0 Nightly by syllogism on Thursday October 15, 2020 @04:46PM (#24793698)
> lazyness of spacy developers by making everything dynamic they broke the autocompletion that is normally working in python.

Actually it's the opposite of "making everything dynamic". spaCy is mostly implemented in Cython, which is a language for writing C extensions for Python. So things are statically typed and memory managed, which sometimes doesn't work well with inspect. We set whatever compilation flags we can to make the annotations passed through though. It's definitely not a question of laziness though...You could say we worked extremely hard to break things in this particular way.

In v3 we've been able to finally ditch Python 2 support, which means we're able to embrace type annotations. Our machine learning library, https://thinc.ai, is extensively type-annotated and actually you can get type hints and type errors for composing layers incorrectly.

Personally I use vim and don't use autocompletion, I find it makes the typing laggy and I've just never really wanted it. We do have developers on the team who use autocompletion though and I think spaCy actually supports it better than you suggest, I'm not sure whether you had a specific problem, but maybe see whether it works if you install spacy-nightly.

Btw I do think you've come across as a weird jerk in this thread though? You might want to read over your messages and think about that. Like, I (and I think most others) genuinely didn't get what you meant in your first few messages; I thought you were saying spaCy didn't let you _build_ autocomplete.

Re:SpaCy v3.0 Nightly by wokwokwok on Thursday October 15, 2020 @07:43PM (#24795719)
fwiw, I love spacy but the autocomplete has never work for me in pycharm either.

Many autocomplete implementations seem to struggle with anything that isn’t “pure python”; pyspark is notorious for it too.

...but, the type annotations do work! That’s definitely the right way to fix it.

Can’t wait~

Re:SpaCy v3.0 Nightly by nl on Thursday October 15, 2020 @07:26PM (#24795563)
I mentioned this elsewhere in thread, but here is an image of it working with VS.Code: https://imgur.com/a/9bcgPkz