1opentrep-library(3) OpenTREP opentrep-library(3)
2
3
4
6 opentrep-libraryC++ Travel Request Parsing (TREP) Library
7
9 #include <opentrep/...>
10
12 OpenTREP aims at providing a clean API, and the corresponding C++
13 implementation, for parsing travel-focused requests (e.g., 'washington
14 dc beijing monday a/r +aa -ua 1 week 2 adults 1 dog').
15
16 OpenTREP uses Xapian (http://www.xapian.org) for the Information
17 Retrieval part, on freely available travel-related data (e.g., country
18 names and codes, city names and codes, airline names and codes, etc.),
19 mainly to be found in the OpenTravelData project
20 (https://github.com/opentraveldata/opentraveldata):
21 https://github.com/opentraveldata/opentraveldata/tree/master/opentraveldata
22
23 OpenTREP exposes a simple, clean and object-oriented, API. For
24 instance, the static Parse() method takes, as input, a string
25 containing the travel request, and yields, as output, the list of the
26 recognised terms as well as their corresponding types. As an example,
27 the travel request 'washington dc beijing monday a/r +aa -ua 1 week 2
28 adults 1 dog' would give the following list: Origin airport:
29 Washington, DC, USA Destination airport: Beijing, China Date of travel:
30 next Monday Date of return: 1 week after next Monday Preferred airline:
31 American Airlines; non-preferred airline: United Airlines Number of
32 travellers: 2 adults and a dog
33
34 The output can then be used by other systems, for instance to book the
35 corresponding travel or to visualise it on a map and calendar and to
36 share it with others.
37
38 OpenTREP makes an extensive use of existing open-source libraries for
39 increased functionality, speed and accuracy. In particular the Boost
40 (C++ Standard Extensions: http://www.boost.org) library is used.
41
42 Note that OpenTREP currently only recognises points of reference (POR),
43 as to be found in the ori_por_public.csv file:
44 http://github.com/opentraveldata/optd/blob/trunk/refdata/ORI/ori_por_public.csv
45 A good complementary tool is GeoBase
46 (http://opentraveldata.github.io/geobases/), a Python-based software
47 able to access to any travel-related data source.
48
50 opentrep-indexer(1), opentrep-dbmgr(1), opentrep-searcher(1), opentrep-
51 config(1)
52
54 Please report any bugs to https://github.com/trep/opentrep/issues
55
57 Copyright © 2009-2013 Denis Arnaud
58
59 See the COPYING file for more information on the (LGPLv2+) license, or
60 directly on Internet:
61 http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
62
63
64
65Version 0.07.10 Sun Nov 14 2021 opentrep-library(3)