User:OrenBochman/Search/Tools
![]() |
![]() |
Scope
editSearch is viewed by most as a neccessary evil. You go to a search engine, type something. The engine read your text, reads your mind for what your really mean and takes you there. No thought's involved and it is great - anything else is a dissaster...
Except that search in a microcosmos of Wikipedia could serve as the oracle. A orcale in the sense of a an individual perhaps touched by a madness that allows him to see further a field and possibly even sense the will of the gods. By going down this path one has to reconsider Search as a distruptive technology.
As such it should commit to the same core set of values used by Wikipedia and its goal is to further the same goals of Wikipdia. What does this mean in practice.
Values
editMarkets
edit- Consider information outside of Wikipedia (is it free or not) - grade external links and offer them in search results.
- Consider information across a wiki's bounderies - promote sharing resources between projects.
- Consider information accress language - promote results in other languages. (Registration advantage!)
- Opt in to personal search - based on browsing/editing history of logged in users.
- Newbie mode.
- Social Search results.
- Trust - show confidence in search results
- survey results
- wikitrust
Tools
editHere is some information on words: Words in a language/corpus follow a long tail distribution. So do keywords within the documents available in the internet. This is called also called the Zip's distribution. In english is we can cluster words by frequency we would observe an interesting phenomena.
There basically three clusters.
- Core syntax - words with no or minimal semantic significance require to give each sentence its structure
- Simple English - core vocabulary required to communicate without specialised terms. There words express concrete or generic concepts of low degree of abstraction, are non technical terms and can have (multiple word sense).
- Specialised Words - limited to a specialised fields, tend to be nouns unfamiliar
notability tool
editthis [pre|stub|article] contains [N] units of unique data. suggested external links, references, images, terms via inter-wiki.
relatedness Tool
editthese two documents are within radius N/1000 these N documents are within radius N/1000
where relatedness considers unique terms and medium frequency synonyms
In and out of Context Scoring Systems
editIt is commonly assumed that adding links between Wikipedia articles helps the wiki grow and is therefore a useful activity. However how many terms should be wikified. None is bad - an island. All is worse - it is a mess.
A metaphor: If one consider each article as a cistern of information one could imagine that links and their numbers should create a network of connections that should allow the information to flow within the systems. But the information does not appear to more. (It does as memes whithin the heads of the editors as transfer vectors). In this view links would optimal assistance to comprehend ideas.
heuristic.
Let there be a collection of documents D1...DN .
One can define a distance between two documents via:
- the Cosine of their Term Vectors.
- the Cosine of their Entity Vector.
- the Cosine of their Relationship Vector.
Terms are lexical units of meaning within a discipline. They can be words, phrases or thechnical terms. Since the vector spaces of Terms Entities and Relationships imply triangle inequality and therefore a metric space.
Then the relatedness of each document
A "Context" scoring mechanism.
This is intended as a quick yet robust mechanism to qualify the salience links of information between two documents.
Q. which words in a sentence A in article B should be wikified.
Good Link/Bad Link
editSome Wikifing Strategies
editScore links as relevant. should one wikify :
- New York Times reports a sex scandal involving w:President w:Bill w:Clinton
- New York Times reports a sex scandal involving President Bill Clinton
- New York Times reports a sex scandal involving president Bill Clinton
- New York Times reports a sex scandal involving president Bill Clinton
- New York Times reports a sex scandal involving President Bill Clinton
- New York Times reports a sex scandal involving President Bill Clinton
- New York Times reports a sex scandal involving President Bill Clinton
from a search/information point of view.
Link in Context
editScore links within their local/global contribution.
Doc in Context
editLucene Stuff
editHow to do full featured analysis chain for a field in lucene
edit- Analyzer (probably a per field version)
- CharReader (usualy not needed)
- CharFilter (pre tokeniser processing - e.g. normalize ZWNJs to spaces in Farsee or convert)
- Tokenizer - Split char sequences to Tokens
- TokenFilter - Process Tokens