Vadim Mazaev
Vadim Mazaev
Try to look at [`nlp.disable_pipes`](https://spacy.io/api/language#disable_pipes): ```.py with nlp.disable_pipes(*custom_components): patterns = [nlp(pattern) for pattern in open("myfile.txt").read().splitlines()] matcher = PhraseMatcher(nlp.vocab) matcher.add('citizenship', None, *patterns) ```
@FredRodrigues, you can change the behavior of tokenizer by creating a custom one, like this: ``` def custom_en_tokenizer(en_vocab): prefixes = list(English.Defaults.prefixes) prefixes.remove('US\$') # Remove exception for currencies prefixes.append(r'(?:US)(?=\$\d+)') # Append...
First, you can simply describe only entities with their spans, there is no need to describe all tokens if they are no matter: `[(48, 54, 'GEO'), (77, 81, 'GEO'), (111,...
> Can I build a sample model without ner, parser and tagger? As I understood, you can build model contains only vocab data. Then you can add any of tagger,...
So, to build model I've combined two scripts: old [`cli.model`](https://github.com/explosion/spaCy/blob/v1.x/spacy/cli/model.py) and new [`cli.vocab`](https://github.com/explosion/spaCy/blob/master/spacy/cli/vocab.py) - into a [new one](https://gist.github.com/GreenRiverRUS/2eb167d8102e6db2a7d467437e77002b), which creates model from words freqs, w2v vectors and brown clusters -...
I think, it might be a pip problem. Which version of pip do you use? Also, try to use such a link: `https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.0.0/en_core_web_sm-2.0.0.tar.gz#egg=en_core_web_sm`
So, I was able to reproduce the problem. The problem is in `-e` at the beggining of the line. [Here](https://github.com/pypa/pip/blob/8f4f15a5a95d7d5b511ceaee9ed261176c181970/tests/functional/test_install.py#L124) you can see that editables in pip shouldn't be a...
The exact format is `CoNLL-2003 NER` as mentioned [here](https://github.com/explosion/spaCy/blob/master/spacy/cli/converters/conll_ner2json.py#L11). You can find a brief description [here](https://www.clips.uantwerpen.be/conll2003/ner/). But if you go deeper into the converter code you can notice, that the...
@diazbastian I can help to replicate error. I use Gnome on Wayland on Arch Linux and has no telegram icon in system tray. Libappindicator is installed: ``` ~/$ sudo pacman...