<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          pyredise基于 Redis 的 Python 搜索引擎

          聯(lián)合創(chuàng)作 · 2023-09-29 04:13

          pyredise 是一個(gè)基于 Python 和 Redis 的簡(jiǎn)單快速的搜索引擎。

          示例代碼:

          import query_handler
          import redis
          db = = redis.Redis(host='localhost', port=6379, db=0)
          QH = query_handler.QueryHandler(db=db)
          
          # issue some queries, returning a list of tuples such as [(doc_id1, score1), (doc_id2, score2), ...]
          print QH.process_query("google security data /pure_tfidf") # ranking only according to tf-idf
          print QH.process_query("google security data /complete") # complete
          print QH.process_query("google security data /title_only") # search in titles
          瀏覽 23
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  美女交叉免费视频啪啪 | 亚洲性爱电影在线 | 色婷婷视频在线观看免费 | 操逼视频链接 | 国产一区二区yy精品无码毛片 |