Commit a966ff93 authored by Alexandre Delanoë's avatar Alexandre Delanoë

install script

parent 56f26c5b
Pipeline #3205 failed
#!/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_)}')
#!/bin/bash
virtualenv -p $(which python3) env
source env/bin/activate
python -m spacy download fr_core_news_md && echo "Installation complete"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment