mirror of
https://github.com/explosion/spaCy.git
synced 2025-03-13 07:55:49 +03:00
Appveyor build #6
This commit is contained in:
parent
3dbec0902f
commit
653ed854cd
|
@ -52,8 +52,8 @@ install:
|
|||
build_script:
|
||||
# Build the compiled extension
|
||||
- "%CMD_IN_ENV% python setup.py build_ext --inplace"
|
||||
- "mkdir corpora\en"
|
||||
- "cd corpora\en"
|
||||
- "mkdir corpora/en"
|
||||
- "cd corpora/en"
|
||||
- "wget --no-check-certificate http://wordnetcode.princeton.edu/3.0/WordNet-3.0.tar.gz"
|
||||
- "tar -xzf WordNet-3.0.tar.gz"
|
||||
- "mv WordNet-3.0 wordnet"
|
||||
|
|
|
@ -1,46 +0,0 @@
|
|||
@echo off
|
||||
rem Python 2.7 x86-64 spaCy Windows build
|
||||
rem Toolchain:
|
||||
rem Python 2.7.10 :)
|
||||
rem Microsoft Visual C++ Compiler Package for Python 2.7:
|
||||
rem http://www.microsoft.com/en-us/download/details.aspx?id=44266
|
||||
rem C99 compliant stdint.h for MSVC:
|
||||
rem http://msinttypes.googlecode.com/svn/trunk/stdint.h
|
||||
|
||||
IF "%1"=="32" GOTO x86-32
|
||||
IF "%1"=="64" GOTO x86-64
|
||||
|
||||
@echo Usage: build-Python27 32/64
|
||||
EXIT /B
|
||||
|
||||
:x86-32
|
||||
PATH = D:\Python27-32\;D:\Python27-32\Scripts;%PATH%
|
||||
GOTO run
|
||||
|
||||
:x86-64
|
||||
PATH = D:\Python27\;D:\Python27\Scripts;%PATH%
|
||||
|
||||
:run
|
||||
|
||||
IF NOT EXIST "%LOCALAPPDATA%\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\include\stdint.h" COPY D:\local\include\stdint.h "%LOCALAPPDATA%\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\include\stdint.h"
|
||||
|
||||
pip install --upgrade setuptools
|
||||
pip install cython fabric fabtools
|
||||
pip install -r requirements.txt
|
||||
python setup.py clean
|
||||
python setup.py build_ext --inplace
|
||||
python setup.py install
|
||||
|
||||
rem mkdir corpora
|
||||
rem cd corpora
|
||||
rem mkdir en
|
||||
rem cd en
|
||||
|
||||
rem powershell -Command "(New-Object Net.WebClient).DownloadFile('http://wordnetcode.princeton.edu/3.0/WordNet-3.0.tar.gz', 'WordNet-3.0.tar.gz')"
|
||||
|
||||
rem set PYTHONPATH = %~dp0
|
||||
rem python bin\init_model.py en lang_data\ corpora\ spacy\en\data
|
||||
|
||||
rem python setup.py test
|
||||
rem python setup.py install
|
||||
rem python tests\conftest.py
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Komodo Project File - DO NOT EDIT -->
|
||||
<project id="67feca82-067e-4f7a-a184-919412ad6c7e" kpf_version="5" name="spacy-build.komodoproject">
|
||||
<preference-set idref="67feca82-067e-4f7a-a184-919412ad6c7e" id="project" preftype="project">
|
||||
</preference-set>
|
||||
</project>
|
|
@ -1,33 +0,0 @@
|
|||
@echo off
|
||||
rem Python 2.7 x86-64 spaCy Windows test
|
||||
|
||||
IF "%1"=="32" GOTO x86-32
|
||||
IF "%1"=="64" GOTO x86-64
|
||||
|
||||
@echo Usage: test-Python27 32/64
|
||||
EXIT /B
|
||||
|
||||
:x86-32
|
||||
PATH = D:\Python27-32\;D:\Python27-32\Scripts;%PATH%
|
||||
GOTO run
|
||||
|
||||
:x86-64
|
||||
PATH = D:\Python27\;D:\Python27\Scripts;%PATH%
|
||||
|
||||
:run
|
||||
set PYTHONPATH=%CD%
|
||||
set PYTHONPATH
|
||||
|
||||
rem python -m spacy.en.download
|
||||
|
||||
pause
|
||||
|
||||
python tests\test_basic_create.py
|
||||
python tests\test_basic_load.py
|
||||
|
||||
py.test tests/ -x
|
||||
|
||||
python -c "import spacy.en; nlp = spacy.en.English(); print([w.text for w in nlp(u'I would like to be a dog')])"
|
||||
python examples\information_extraction.py
|
||||
python examples\matcher_example.py
|
||||
|
Loading…
Reference in New Issue
Block a user