mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-25 14:17:31 +00:00
70af8132ef
The keyword table that picks the extraction schema took the first pattern that matched, with transport tested first since #2076. A hotel confirmation that mentioned the airport bus, the train station or the cruise port was therefore extracted with the bus, train or ferry schema. Those schemas have no hotel name, address or check-in and check-out, so the model returned a transport booking without the stay's data and the import dropped it. The keywords now only decide alone when a document names one type. When it names several, the model gets the union schema narrowed to exactly those types, with each type's field meanings, and picks. The flight gate is unchanged: flight numbers still take the flight path only when no other transport is named. Event words decide only when nothing else is named, since "ticket" is printed on every transport ticket, and the lodging pattern also knows motel, accommodation, apartment, guest house, Unterkunft and Ferienwohnung.