ajenhl / tacl

Tool for performing basic text analysis on the CBETA corpus
GNU General Public License v3.0
30 stars 9 forks source link

Refactor search to use standard results format #57

Closed ajenhl closed 7 years ago

ajenhl commented 7 years ago

With the addition of a second type of search results, it makes sense to now refactor search to provide the same results format as diff and intersect queries, and to add result functions to perform the grouping etc that would replicate the current outputs (and allow for other combinations).

ajenhl commented 7 years ago

As part of this, I think it is worth changing the existing behaviour of search (including results from every work, with an optional catalogue to provide labels for some of them) to restrict results to labelled works. This provides consistency, and it is easy enough to make a catalogue covering every work in a corpus.