File size: 2,615 Bytes
af03d3d
 
 
 
 
58ec4a8
af03d3d
 
 
58ec4a8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
title: README
emoji: πŸ‘
colorFrom: pink
colorTo: indigo
sdk: static
pinned: false
---

<p class="lg:col-span-3">
	Hugging Face makes it really easy to share your <a
		href="https://spacy.io/">spaCy</a
	>
	pipelines with the community!<br />
	With a single command, you can upload any pipeline package, with a pretty
	model card and all required metadata auto-generated for you. The inference
	API currently supports NER out-of-the-box and you can try out your
	pipeline interactively in your browser. You'll also get a live URL for
	your package that you can pip install from anywhere for a smooth path from
	prototype all the way to production!
</p>
<a href="https://spacy.io/" class="block overflow-hidden group">
	<div
		class="w-full h-40 object-cover mb-2 rounded-lg flex items-center justify-center bg-[#ECFAFF]"
	>
		<img alt="" src="/front/assets/promo/spacy_logo.png" class="w-40" />
	</div>
	<div class="underline">spaCy website</div>
</a>
<a
	href="https://github.com/explosion/spacy-huggingface-hub"
	class="block overflow-hidden"
>
	<div class="flex items-center h-40 bg-[#ECFAFF] rounded-lg px-4 mb-2">
		<pre
			class="break-words leading-1 whitespace-pre-line text-xs text-gray-800">
python -m spacy huggingface-hub push [whl_path] [--org] [--msg] [--local-repo] [--verbose]
	</pre>
	</div>
	<div class="underline">Upload packages on the hub</div>
</a>
<a
	href="https://huggingface.co/models?filter=spacy"
	class="block overflow-hidden group"
>
	<div
		class="w-full h-40 mb-2 bg-gray-900 group-hover:bg-gray-850 rounded-lg flex items-start justify-start overflow-hidden"
	>
		<img
			alt=""
			src="/front/assets/promo/spacy_widget.jpeg"
			class="w-full h-40 object-cover overflow-hidden"
		/>
	</div>
	<div class="underline">Find all spaCy models in the Hub</div>
</a>
<div class="lg:col-span-3">
	<p class="mb-4">
		To upload your spaCy pipelines to the Hub, you can use the <a
			href="https://github.com/explosion/spacy-huggingface-hub"
			>spacy-huggingface-hub</a
		>
		library.
	</p>
	<div
		class="p-4 bg-gradient-to-b from-gray-50-to-white border border-gray-100 rounded-lg relative mb-4"
	>
		<pre
			class="break-words leading-1 whitespace-pre-line text-xs md:text-sm text-gray-800">
pip install spacy-huggingface-hub
huggingface-cli login
python -m spacy package ./en_ner_fashion ./output --build wheel
cd ./output/en_ner_fashion-0.0.0/dist
python -m spacy huggingface-hub push en_ner_fashion-0.0.0-py3-none-any.whl
	</pre>
	</div>
	<p>
		More information: <a
			href="https://spacy.io/usage/v3-1#huggingface-hub"
			class="underline">spaCy 3.1 release post</a
		>
	</p>
</div>