forked from ufal/udpipe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
125 lines (86 loc) · 4.02 KB
/
INSTALL
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
UDPipe Installation
===================
UDPipe releases are available on GitHub (http://github.com/ufal/udpipe), either
as a pre-compiled binary package, or source code only. The binary package
contains Linux, Windows and OS X binaries, Java bindings binary, C# bindings
binary, and source code of UDPipe and all language bindings. While the binary
packages do not contain compiled Python or Perl bindings, packages for those
languages are available in standard package repositories, i.e. on PyPI and CPAN.
To use UDPipe, a model is needed. Here is a list of available models
(http://ufal.mff.cuni.cz/udpipe/1#available_models).
If you want to compile UDPipe manually, sources are available on on GitHub
(http://github.com/ufal/udpipe), both in the pre-compiled binary package
releases (http://github.com/ufal/udpipe/releases) and in the repository itself.
Requirements
============
- g++ 4.7 or newer, clang 3.2 or newer, Visual C++ 2015 or newer
- make
- SWIG 3.0.8 or newer for language bindings other than C++
Compilation
===========
To compile UDPipe, run make in the src directory.
Make targets and options:
- exe: compile the binaries (default)
- server: compile the REST server
- lib: compile the static library
- BITS=32 or BITS=64: compile for specified 32-bit or 64-bit architecture
instead of the default one
- MODE=release: create release build which statically links the C++ runtime and
uses LTO
- MODE=debug: create debug build
- MODE=profile: create profile build
Platforms
---------
Platform can be selected using one of the following options:
- PLATFORM=linux, PLATFORM=linux-gcc: gcc compiler on Linux operating system,
default on Linux
- PLATFORM=linux-clang: clang compiler on Linux, must be selected manually
- PLATFORM=osx, PLATFORM=osx-clang: clang compiler on OS X, default on OS X;
BITS=32+64 enables multiarch build
- PLATFORM=win, PLATFORM=win-gcc: gcc compiler on Windows (TDM-GCC is well
tested), default on Windows
- PLATFORM=win-vs: Visual C++ 2015 compiler on Windows, must be selected
manually; note that the cl.exe compiler must be already present in PATH and
corresponding BITS=32 or BITS=64 must be specified
Either POSIX shell or Windows CMD can be used as shell, it is detected
automatically.
Further Details
---------------
UDPipe uses C++ BuilTem system (http://github.com/ufal/cpp_builtem), please
refer to its manual if interested in all supported options.
Other language bindings
=======================
C#
--
Binary C# bindings are available in UDPipe binary packages.
To compile C# bindings manually, run make in the bindings/csharp directory,
optionally with the options described in UDPipe Installation.
Java
----
Binary Java bindings are available in UDPipe binary packages.
To compile Java bindings manually, run make in the bindings/java directory,
optionally with the options described in UDPipe Installation. Java 6 and newer
is supported.
The Java installation specified in the environment variable JAVA_HOME is used.
If the environment variable does not exist, the JAVA_HOME can be specified using
make JAVA_HOME=path_to_Java_installation
Perl
----
The Perl bindings are available as Ufal-UDPipe package on CPAN.
To compile Perl bindings manually, run make in the bindings/perl directory,
optionally with the options described in UDPipe Installation. Perl 5.10 and
later is supported.
Path to the include headers of the required Perl version must be specified in
the PERL_INCLUDE variable using
make PERL_INCLUDE=path_to_Perl_includes
Python
------
The Python bindings are available as ufal.udpipe package on PyPI.
To compile Python bindings manually, run make in the bindings/python directory,
optionally with options described in UDPipe Installation. Both Python 2.6+ and
Python 3+ are supported.
Path to the include headers of the required Python version must be specified in
the PYTHON_INCLUDE variable using
make PYTHON_INCLUDE=path_to_Python_includes
You might also be interested in a contributed package spacy-udpipe
(https://github.com/TakeLab/spacy-udpipe) which wraps UDPipe with spaCy API.