seek_quarry
[ class tree: seek_quarry ] [ index: seek_quarry ] [ all elements ]

Procedural File: recipe_plugin.php

Source Location: /lib/indexing_plugins/recipe_plugin.php



Classes:

RecipePlugin
This class handles recipe processing.
Vertex
class to define vertex
Edge
class to define edge
Tree
class to define Minimum Spanning tree. constructMST constructs the minimum spanning tree using heap. formCluster forms clusters by deleting the most expensive edge. BreadthFirstSearch is used to traverse the MST.
Cluster
heap to maintain the MST
TreeCluster
heap to maintain the tree
Queue
queue for the BFS traversal


Page Details:

SeekQuarry/Yioop -- Open Source Pure PHP Search Engine, Crawler, and Indexer

Copyright (C) 2011 Priya Gangaraju priya.gangaraju@gmail.com

LICENSE:

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

END LICENSE




Tags:

author:  Priya Gangaraju priya.gangaraju@gmail.com
copyright:  2011
link:  http://www.seekquarry.com/
filesource:  Source Code for this file
license:  GPL3


Includes:

require_once(BASE_DIR."/lib/phrase_parser.php") [line 59]
Used to extract text from documents

require_once(BASE_DIR."/lib/processors/html_processor.php") [line 51]
Loads processor used for

require_once(BASE_DIR."/lib/index_shard.php") [line 57]
Used to create index shards to add ingredient: entries

to index


require_once(BASE_DIR."/lib/utility.php") [line 61]
Get the crawlHash function

require_once(BASE_DIR."/lib/crawl_constants.php") [line 63]
Loads common constants for web crawling

require_once(BASE_DIR."/controllers/search_controller.php") [line 67]
Load base controller class, if needed.

require_once(BASE_DIR."/lib/locale_functions.php") [line 65]
For locale used by recipe query

require_once(BASE_DIR."/lib/indexing_plugins/indexing_plugin.php") [line 53]
Base indexing plugin class






CLUSTER_RATIO [line 39]

CLUSTER_RATIO = 0.1
Ratio of clusters/total number of recipes seen


[ Top ]




construct_tree [line 824]

object arrat construct_tree( object array $edges)

creates tree from the input and apply Kruskal's algorithm to find MST.



Tags:

return:  MST


Parameters

object array   $edges   recipes with distances between them.
[ Top ]



kruskalClustering [line 877]

clusters kruskalClustering( array $edges, int $count, array $distinct_ingredients)

Clusters the recipes by applying Kruskal's algorithm



Tags:

return:  of recipes.


Parameters

array   $edges   recipes and distances between them.
int   $count   number of recipes.
array   $distinct_ingredients   recipe names with ingredients.
[ Top ]



Documentation generated by phpDocumentor 1.4.3