Version 1.x vs. 2.x
Compared to Lingo4G 1.x, version 2.x adds a new flexible API for executing diverse text processing pipelines. Everything else remains the same.
What has not changed
-
General architecture. Both version employ the two-phase processing paradigm, which splits processing into the indexing and analysis phase.
-
Project descriptor. Both versions use the same project descriptor JSON format. Version 2.x adds an optional section for configuring the new analysis API.
-
Command line interface. Both versions expose the same commands for indexing documents and starting Lingo4G REST API server.
-
Document indexing pipeline. Both versions use the same document indexing pipeline, such as document sources, analyzers and stop label extraction.
-
REST API v1. Lingo4G 2.x includes both the original v1 REST API and the new v2 REST API. Therefore, if you have existing code calling the v1 REST API, your code will also work with Lingo4G 2.x.
-
Explorer v1. Lingo4G 2.x includes the original Lingo4G Explorer, which calls the v1 REST API.
What has changed
-
v2 analysis API. Version 2.x adds the new
/v2/analysis
endpoint, which exposes the v2 analysis API. The new API lets you arrange simple text processing components into pipelines of varying complexity. See the Analysis JSON part for a step-by-step tutorial on the new API. -
Explorer v2. Version 2.x comes with a modernized Lingo4G Explorer, which is now split into a number of smaller apps.