1. About AdvaS
2. Installation Guide
3. Usage Of AdvaS
4. Class AdvancedSearch
 -  4.1 __init__
 -  4.2 addEntry
 -  4.3 advancedSearch
 -  4.4 calculateRetrievalStatusValue
 -  4.5 clearEntryList
 -  4.6 compareDescriptors
 -  4.7 compareDescriptorsBinary
 -  4.8 compareDescriptorsFuzzy
 -  4.9 compareDescriptorsKNN
 -  4.10 comparePhoneticCode
 -  4.11 comparePhoneticCodeLists
 -  4.12 countEntryList
 -  4.13 extendStopList
 -  4.14 fullTextSearch
 -  4.15 getEmptyId
 -  4.16 getEntryList
 -  4.17 getSearchStrategy
 -  4.18 getSortOrder
 -  4.19 getStopList
 -  4.20 idf
 -  4.21 isInEntryList
 -  4.22 mergeLists
 -  4.23 mergeListsIdf
 -  4.24 reduceStopList
 -  4.25 removeEntry
 -  4.26 reverseSortOrder
 -  4.27 search
 -  4.28 searchByPhoneticCode
 -  4.29 setSearchStrategy
 -  4.30 setSortOrderAscending
 -  4.31 setSortOrderDescending
 -  4.32 setStopList
 -  4.33 sortEntryList
 -  4.34 tf
 -  4.35 tfStop
5. Class Advas
6. Class AdvasIo
7. Class Descriptors
8. Class Entry
9. Class Ngram
10. Class Phonetics
11. Class Stemmer
12. Information Retrieval Resources
13. Documentation
 
 compareDescriptorsKNN
 
compareDescriptorsKNN (self, request, document)

Added to advas-0.1.0 as function kNN, adjusted for 0.2.5

Compares two document descriptors (request and document), and returns its degree of equality.


In: request search request; object of class Descriptor
  document document request; object of class Descriptor

Out: result of the knn comparison as a float value between 0 and 1. The higher the similarity of the descriptors, the higher the return value.