Add poc files
This commit is contained in:
parent
30da2412e3
commit
fa600b98f7
220 changed files with 45679 additions and 0 deletions
27
h_program-lang/big_grep.mli
Normal file
27
h_program-lang/big_grep.mli
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
|
||||
type index = {
|
||||
big_string: string;
|
||||
pos_to_entity: (int, Database_code.entity) Hashtbl.t;
|
||||
case_sensitive: bool;
|
||||
}
|
||||
val empty_index: unit -> index
|
||||
|
||||
(* the list is supposed to be sorted by importance so that the
|
||||
* top n search returns first the most important entities
|
||||
*)
|
||||
val build_index:
|
||||
?case_sensitive:bool ->
|
||||
Database_code.entity list -> index
|
||||
|
||||
val top_n_search:
|
||||
top_n:int ->
|
||||
query:string ->
|
||||
index ->
|
||||
Database_code.entity list
|
||||
|
||||
val naive_top_n_search:
|
||||
top_n:int ->
|
||||
query:string ->
|
||||
Database_code.entity list ->
|
||||
Database_code.entity list
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue