This file is indexed.

/usr/share/bash-completion/completions/irstlm.completion is in irstlm 5.80.03-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Debian GNU/Linux irstlm completion
# Copyright 2013 Giulio Paci <giuliopaci@gmail.com>
# License LGPL-2.1+

_irstlm_get_cmds()
{
    echo "help ngt tlm dict plsa build-lm-qsub dtsel sort-lm build-sublm compile-lm lm-stat mdtsel score-lm quantize-lm verify-caching split-ngt goograms2ngrams merge-sublm interpolate-lm add-start-end build-lm ngram-split prune-lm split-dict rm-start-end ";
}

_irstlm()
{
	local cur cmds

	COMPREPLY=()
	cur=${COMP_WORDS[$COMP_CWORD]}

	if [ $COMP_CWORD -eq 1 ]; then
	    cmds="$(_irstlm_get_cmds)"
	    COMPREPLY=( $(compgen -o filenames -W "$cmds" -- $cur) )
	elif [ $COMP_CWORD -eq 2 ] && [[ ${COMP_WORDS[1]}  = "help" ]]; then
	    cmds="$(_irstlm_get_cmds)"
	    COMPREPLY=( $(compgen -o filenames -W "$cmds" -- $cur) )
	elif [ $COMP_CWORD -ge 2 ] ; then
	    case ${COMP_WORDS[1]} in
	     	"ngt")
			    COMPREPLY=( $(compgen -o filenames -W "--AugmentFile= --ConvDict= --Dictionary= --DistCo= --FilterDict= --FilterTable= --FilterTableRate= --HistoMask= --InpLen= --InputFile= --InputGoogleFormat= --LmTable= --NgramSize= --OutputFile= --OutputGoogleFormat= --SaveBinaryTable= --SaveSingle= --SubDict= --aug= -b= --cd= -d= --dc= --fd= --ft= --ftlm= --ftr= --gooinp= --gooout= --hm= -i= --iknstat= --il= --lm= --memuse= -n= -o= --sd= --ss= --tlm=  " -- $cur) )
			    ;;
	     	"tlm")
			    COMPREPLY=( $(compgen -o filenames -W "-Help -h --AdaptLevel= --AdaptOOV= --AdaptOn= --AdaptRate= --Back-off= --Beta= --CheckProb= --ComputeLMSize= --Dictionary= --DictionaryUpperBound= --Interactive= --LanguageModelType= --LoadMixParam= --MaximumCachingLevel= --MemoryMap= --Ngram= --NgramSize= --OutProb= --PruneSingletons= --PruneThresh= --PruneTopSingletons= --SaveMixParam= --SavePerLevel= --SaveScaleFactor= --SetOovRate= --Statistics= --SubLMInfo= --TestOn= --TrainOn= --ad= --al= --ao= --ar= --beta= --bo= --cp= -d= --dub= -i= --lm= --lmp= --mcl= --memmap= --mm= -n= -o= --oARPA= --oASR= --oBIN= --oarpa= --oasr= --obin= --op= --or= -p= --ps= --pts= -s= --slmi= --smp= --ssf= --sz= --te= --tr=  " -- $cur) )
			    ;;
	     	"dict")
			    COMPREPLY=( $(compgen -o filenames -W "--Curve= --CurveSize= --Freq= --InputFile= --IntSymb= --ListOOV= --LoadFactor= --OutputFile= --PruneFreq= --PruneRank= --Size= --TestFile= -c= --cs= -f= -i= --is= --lf= -o= --oov= --pf= --pr= -s= --sort= -t=  " -- $cur) )
			    ;;
	     	"plsa")
			    COMPREPLY=( $(compgen -o filenames -W "--Binary= --Collection= --CombineTFile= --Dictionary= --Features= --HFile= --Inference= --Iterations= --Model= --SpecialTopic= --SplitData= --TFile= --Topics= --TxtFile= --WFile= -b= -c= --ct= -d= -f= --hf= --inf= --it= -m= --sd= --st= -t= --tf= --txt= --wf=   --EXAMPLES= --(1) --Train --<text_collection> --number --number --The --documents --The --Example 3 --<d> --<d> --<d> --(2) --Binarize --(3) --Infer --text.  " -- $cur) )
			    ;;
	     	"build-lm-qsub")
			    COMPREPLY=( $(compgen -o filenames -W "-i -o -k -n -t -p -u -q -s -b -d -v " -- $cur) )
			    ;;
	     	"dtsel")
			    COMPREPLY=( $(compgen -o filenames -W "--block-size= --bs= -c= --convergence-threshold= --cross-validation= --cv= --dictionary-upper-bound= --dub= -f= -i= --in-domain-file= --index= -m= --min-word-freq= --model= -n= --ngram-order= -o= --out-domain-file= -s= --score-file= -t= --test= -v= --verbose= -x=  " -- $cur) )
			    ;;
	     	"sort-lm")
			    COMPREPLY=( $(compgen -o filenames -W "-ilm -olm -inv " -- $cur) )
			    ;;
	     	"build-sublm")
			    COMPREPLY=( $(compgen -o filenames -W "--size --ngrams --sublm --freq-shift --witten-bell --kneser-ney --improved-kneser-ney --good-turing --prune-singletons --cross-sentence --verbose " -- $cur) )
			    ;;
	     	"compile-lm")
			    COMPREPLY=( $(compgen -o filenames -W "-d= --debug= --dict_load_factor= --dub= -e= --eval= -f= --filter= -i= --invert= --keepunigrams= --ku= -l= --level= --memmap= --mm= --ngram_load_factor= -r= --randcalls= -s= --score= --sentence= -t= --text= --tmpdir=  " -- $cur) )
			    ;;
	     	"lm-stat")
			    COMPREPLY=( $(compgen -o filenames -W "--lm --txt " -- $cur) )
			    ;;
	     	"mdtsel")
			    COMPREPLY=( $(compgen -o filenames -W "-v -i -o -s -x -w -j -m -f -n -d -c " -- $cur) )
			    ;;
	     	"score-lm")
			    COMPREPLY=( $(compgen -o filenames -W "-lm -dub -level -mm " -- $cur) )
			    ;;
	     	"quantize-lm")
			    COMPREPLY=( $(compgen -o filenames -W " " -- $cur) )
			    ;;
	     	"goograms2ngrams")
			    COMPREPLY=( $(compgen -o filenames -W "--maxsize --startfrom --googledir --ngramdir --verbose " -- $cur) )
			    ;;
	     	"merge-sublm")
			    COMPREPLY=( $(compgen -o filenames -W "--size --sublm --lm " -- $cur) )
			    ;;
	     	"interpolate-lm")
			    COMPREPLY=( $(compgen -o filenames -W "-d= --debug= --dict_load_factor= --dub= -e= --eval= -l= --learn= --lev= --level= --memmap= --mm= --ngram_load_factor= -o= --order= -s= --score= --sentence=  " -- $cur) )
			    ;;
	     	"build-lm")
			    COMPREPLY=( $(compgen -o filenames -W "-i -o -k -n -t -p -u -s -b -d -v " -- $cur) )
			    ;;
	     	"prune-lm")
			    COMPREPLY=( $(compgen -o filenames -W "--abs= -t= --threshold=  " -- $cur) )
			    ;;
	     	"split-dict")
			    COMPREPLY=( $(compgen -o filenames -W "--input --output --parts " -- $cur) )
			    ;;

		*)
		    ;;
	    esac
	fi

	return 0
}

complete -o bashdefault -o default -o nospace -F _irstlm irstlm


# vim:ft=sh: