Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
spacy-server
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
spacy-server
Commits
a966ff93
Commit
a966ff93
authored
Sep 26, 2022
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
install script
parent
56f26c5b
Pipeline
#3205
failed
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
pos_test.py
docs/pos_test.py
+18
-0
install
install
+6
-0
No files found.
docs/pos_test.py
0 → 100644
View file @
a966ff93
#!/bin/python
import
spacy
#import fr_core_news_md
#nlp = spacy.load("en_core_web_sm")
#doc = nlp("Get busy living or get busy dying.")
nlp
=
spacy
.
load
(
"fr_core_news_md"
)
doc
=
nlp
(
"Être ou ne pas être, là est la question. Le chat noir court dans la cuisine encombrée."
)
print
(
f
"{'text':{8}} {'POS':{6}} {'TAG':{6}} {'Dep':{6}} {'POS explained':{20}} {'tag explained'} "
)
for
token
in
doc
:
print
(
f
'{token.text:{8}} {token.pos_:{6}} {token.tag_:{6}} {token.dep_:{6}} {spacy.explain(token.pos_):{20}} {spacy.explain(token.tag_)}'
)
install
0 → 100755
View file @
a966ff93
#!/bin/bash
virtualenv
-p
$(
which python3
)
env
source env
/bin/activate
python
-m
spacy download fr_core_news_md
&&
echo
"Installation complete"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment