Skip to content

Commit

Permalink
Merge pull request #18 from theirstory/0.0.8
Browse files Browse the repository at this point in the history
0.0.8
  • Loading branch information
wjbmattingly committed May 30, 2024
2 parents 92cc5aa + f6abf78 commit f404415
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pip install gliner-spacy
## Usage
To use this wrapper in your SpaCy pipeline, follow these steps:

1. Import SpaCy and the GLiNER SpaCy wrapper.
1. Import SpaCy.
2. Create a SpaCy `Language` instance.
3. Add the `gliner_spacy` component to the SpaCy pipeline.
4. Process text using the pipeline.
Expand All @@ -30,7 +30,6 @@ Example code:

```python
import spacy
from gliner_spacy.pipeline import GlinerSpacy

nlp = spacy.blank("en")
nlp.add_pipe("gliner_spacy")
Expand All @@ -52,7 +51,6 @@ Microsoft organization

```python
import spacy
from gliner_spacy.pipeline import GlinerSpacy

custom_spacy_config = { "gliner_model": "urchade/gliner_multi",
"chunk_size": 250,
Expand Down
2 changes: 2 additions & 0 deletions build/lib/gliner_spacy/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from gliner_spacy import *
from .version import __version__
2 changes: 1 addition & 1 deletion build/lib/gliner_spacy/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.6"
__version__ = "0.0.8"
2 changes: 1 addition & 1 deletion gliner_spacy/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.7"
__version__ = "0.0.8"
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
long_description_content_type='text/markdown',
url='https://github.com/theirstory/gliner-spacy',
packages=find_packages(),
entry_points={
"spacy_factories": ["gliner_spacy = gliner_spacy.pipeline:GlinerSpacy"],
},
install_requires=[
'spacy>=3.0.0',
'gliner>=0.2.0',
Expand Down

0 comments on commit f404415

Please sign in to comment.