1
0
Fork 0

Adding upstream version 2.5.1.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-05-19 00:20:02 +02:00
parent c71cb8b61d
commit 982828099e
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
783 changed files with 150650 additions and 0 deletions

View file

@ -0,0 +1,262 @@
package hi
import (
"github.com/blevesearch/bleve/v2/analysis"
"github.com/blevesearch/bleve/v2/registry"
)
const StopName = "stop_hi"
// this content was obtained from:
// lucene-4.7.2/analysis/common/src/resources/org/apache/lucene/analysis/
// ` was changed to ' to allow for literal string
var HindiStopWords = []byte(`# Also see http://www.opensource.org/licenses/bsd-license.html
# See http://members.unine.ch/jacques.savoy/clef/index.html.
# This file was created by Jacques Savoy and is distributed under the BSD license.
# Note: by default this file also contains forms normalized by HindiNormalizer
# for spelling variation (see section below), such that it can be used whether or
# not you enable that feature. When adding additional entries to this list,
# please add the normalized form as well.
अंदर
अत
अपन
अपन
अपने
अभ
आदि
आप
इत्यि
इन
इनक
इन्ह
इन्हें
इन्ह
इस
इसक
इसक
इसके
इसमें
इस
इसे
उन
उनक
उनक
उनके
उनक
उन्ह
उन्हें
उन्ह
उस
उसके
उस
उसे
एक
एवं
एस
ऐसे
और
कई
कर
करत
करते
करन
करने
करें
कहते
कह
ि
ितन
िन्हें
िन्ह
ि
ि
ि
ि
िसे
कुछ
कुल
के
नस
गय
घर
जब
जह
ितन
ि
िन्हें
िन्ह
ि
िसे
धर
जैस
जैसे
तक
तब
तरह
ि
िन्हें
िन्ह
ि
िसे
थे
दब
ि
दुसर
दूसरे
द्व
नह
ियत
चे
ने
पर
पर
पहले
पूर
पे
ि
बन
बह
बहुत
िलकुल
तर
मगर
मे
में
यदि
यह
यह
यह
ि
ये
रखें
रह
रहे
ऱ्व
ि
िये
लेकि
वर्ग
वह
वह
वह
वह
ले
वुह
वे
वग़ैरह
संग
सकत
सकते
सबसे
सभ
बुत
से
हुआ
हुई
हुए
है
हैं
ते
ने
# additional normalized forms of the above
अपनि
जेसे
ि
सभि
िंह
इंह
दव
इसि
िंहें
ि
उंह
ओर
िंहें
वहि
अभि
बनि
ि
उंहि
उंहें
हें
वगेरह
एसे
रव
िचे
ि
उसि
पुर
ितर
हे
बहि
वह
यह
िंह
िंहें
िि
कइ
यहि
इंहि
िधर
इंहें
अदि
इतयि
हुइ
नस
इसकि
दुसरे
जह
अप
िंह
उनकि
ि
वरग
हुअ
जेस
नहि
`)
func TokenMapConstructor(config map[string]interface{}, cache *registry.Cache) (analysis.TokenMap, error) {
rv := analysis.NewTokenMap()
err := rv.LoadBytes(HindiStopWords)
return rv, err
}
func init() {
err := registry.RegisterTokenMap(StopName, TokenMapConstructor)
if err != nil {
panic(err)
}
}