⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test-service.php

📁 这个包主要用来帮助我们了解carrot2的格式
💻 PHP
📖 第 1 页 / 共 5 页
字号:
$carrot = new Carrot2($SERVER, $PORT, $SERVICE, $THISPAGE_ENCODING);

$results = array(
    "title", "http://www.nodomain.com/", "snippet",
    "start 艂贸臋膮艣偶藕膰艅艁脫臉呕膯艢 end", "http://www.nodomain.com/", "Sample snippet: 艂贸臋膮艣偶藕膰",
    "start2 艂贸艅艂艣偶藕膰膮", "http://www.nodomain.com/", "Second sample snippet: 艂贸艣艅艣膮藕膰膮艣"
);

for ($i = 0; $i < count($results); $i += 3) {
  $title = $results[$i];
  $url = $results[$i + 1];
  $snippet = $results[$i + 2];
  $carrot->addDocument($url, strip_tags($title), strip_tags($snippet));
}

$clusters = $carrot->clusterQuery("test4");

if (isset($clusters)) {
    echo "PASSED (" . count($clusters) . " clusters)";
} else {
    echo "FAILED (no clusters object);";
}

echo "</p>";
flush();


//
// Test 2: Test Carrot2 service using some real data.
//
echo '<p class="head">Testing, Carrot2 service check (real data):</p><p class="value">';

$carrot = new Carrot2($SERVER, $PORT, $SERVICE, $THISPAGE_ENCODING, $SERVICE_NAME,
    /* Processing options. This can be used to select the clustering algorithm
       for example. See ProcessingOptionNames for key and possible values.
       
       Example:
       array("dcs.default.algorithm" => "stc-en"),
     */
    array(),
    /* Request parameters. This can be used to customize the clustering process. See
    particular components for keys/ values.
     */ 
    array()
);

$results = array(
"Data Mining - Wikipedia", "http://en.wikipedia.org/wiki/Data_mining", "Article about knowledge-discovery in databases (KDD), the practice of automatically searching large stores of data for patterns.",
"KD Nuggets", "http://www.kdnuggets.com/", "Newsletter on the data mining and knowledge industries, offering information on data mining, knowledge discovery, text mining, and web mining software, courses, jobs, publications, and meetings.",
"The Data Mine", "http://www.the-data-mine.com/", "Provides information about data mining also known as knowledge discovery in databases (KDD) or simply knowledge discovery. List software, events, organizations, and people working in data mining.",
"DMG", "http://www.dmg.org/", "The Laboratory for Advanced Computing develops technologies for high performance computing, high performance networking, internet computing, data mining and related areas. ... Data Mining Group. DMG. DMG Menu ... The Data Mining Group (DMG) is an independent, vendor led group which develops data mining standards, such as the ...",
"Two Crows: Data mining glossary", "http://www.twocrows.com/glossary.htm", "Data mining terms concisely defined. ... factor in assessing the success of data mining. When applied to data, accuracy refers to the rate of ... For example, a data mining software system may have an API which ...",
"Jeff Ullman's Data Mining Lecture Notes", "http://www-db.stanford.edu/~ullman/mining/mining.html", "Offers an introduction to various data mining applications and techniques: association-rule mining, low-support/high correlation, query flocks, searching the Web, web mining, and clustering.",
"Thearling.com", "http://www.thearling.com/", "Kurt Thearling's site dedicated to sharing information about data mining, the automated extraction of hidden predictive information from databases, and other analytic technologies.",
"Data Mining", "http://www.eco.utexas.edu/~norman/BUS.FOR/course.mat/Alex", "Introduction to knowledge discovery, the computer-assisted process of digging through and analyzing enormous sets of data and then extracting the meaning of the data.",
"CCSU - Data Mining", "http://www.ccsu.edu/datamining/resources.html", "Data Mining Resources. Resources. Groups. Data Sets. Papers on Data Mining. Commercial. Register at",
"Data Mining: Practical Machine Learning Tools and Techniques", "http://www.cs.waikato.ac.nz/~ml/weka/book.html", "Data Mining: Practical Machine Learning Tools and Techniques (Second Edition) Morgan Kaufmann. June 2005. 525 pages. Paper. ISBN 0-12-088407-0. Comments ... What's it all about? 1.1 Data mining and machine learning ...",
"Data Mining - Monografias.com", "http://www.monografias.com/trabajos/datamining/datamining.shtml", "En indice. En texto completo. En Internet. Data Mining ... Data Mining, la extracci贸n de informaci贸n oculta y predecible de grandes bases de ... de Informaci贸n (Data Warehouse). Las herramientas de Data Mining predicen futuras tendencias y ...",
"Amazon.com: Data Mining: Books: Pieter Adriaans,Dolf Zantinge", "http://www.amazon.com/exec/obidos/tg/detail/-/0201403803?v=glance", "... Data Mining deals with discovering hidden knowlege, unexpected patterns and rules in large databases ... But setting up a data mining environment is not a trivial task ...",
"DMReview", "http://www.dmreview.com/", "An issues and solutions publication that focuses on data warehousing as well as client/server and object technology for the enterprise.",
"Data Mining @ CCSU", "http://www.ccsu.edu/datamining", "Offers degrees and certificates in data mining. Allows students to explore cutting-edge data mining techniques and applications: market basket analysis, decision trees, neural networks, machine learning, web mining, and data modeling.",
"What is Data Mining", "http://www.megaputer.com/dm/dm101.php3", "Megaputer offers data mining, text mining, and web data mining software tools for e-commerce, database marketing, and CRM; seminars, training and consulting on data mining. Customer ... in order to make informed business decisions. Data mining automates the process of finding relationships and patterns in ... In these situations data mining is your only real option ...",
"Electronic Statistics Textbook: Data Mining Techniques", "http://www.statsoft.com/textbook/stdatmin.html", "Outlines the crucial concepts in data mining, defines the data warehousing process, and offers examples of computational and graphical exploratory data analysis techniques.",
"data mining - a definition from Whatis.com - see also: data miner, data analysis", "http://searchcrm.techtarget.com/sDefinition/0,,sid11_gci211901,00.html", "... data mining. Home &amp;gt; CRM Definitions - Data mining ... about the future (This area of data mining is known as predictive analytics.) Data mining techniques are used in ...",
"St@tServ - About Data Mining", "http://www.statserv.com/datamining.html", "... What is Data Mining ? ' Data mining is the process of discovering meaningful new correlations, patterns ... Gartner Group). ' Data mining is the exploration and analysis, by automatic ...",
"DATA MINING 2005", "http://www.wessex.ac.uk/conferences/2005/data05", "... International Conference on Data Mining, Text Mining and their Business Applications ... Conference on Data Mining, Text Mining and their Business Applications (Data Mining ...",
"Investor Home - Data Mining", "http://www.investorhome.com/mining.htm", "... Data Mining. The rapid evolution of computer technology in the last few decades has provided ... and consequences of 'data mining.' Data mining involves searching through databases for ...",
"SAS | Data Mining and Text Mining", "http://www.sas.com/technologies/data_mining", "... status almost upon its introduction, our data mining technology continues to receive rave reviews ... text-based information with structured data for an enriched data mining process ...",
"Data Mining Student Notes, QUB", "http://www.pcc.qub.ac.uk/tec/courses/datamining/stu_notes/dm_book_1.html", "Data Mining. An Introduction. Student Notes. Ruth Dilly. Parallel Computer Centre. Queens University Belfast. Version 2.0. December1995 ... 1 - Data mining. 1.1 - What is data mining? 1.2 - Data mining background. 1.2.1 - Inductive learning ...",
"Data Mining", "http://datamining.typepad.com/data_mining", "... Data Mining. About. Galleries ... However, the distance between that data and some model of intention is currently pretty wide ...",
"Two Crows Corporation", "http://www.twocrows.com/", "Dedicated to the development, marketing, sales and support of tools for knowledge discovery to make data mining accessible and easy to use.",
"Statistical Data Mining Tutorials", "http://www.autonlab.org/tutorials", "Includes a set of tutorials on many aspects of statistical data mining, including the foundations of probability, the foundations of statistical data analysis, and most of the classic machine learning and data mining algorithms.",
"Data Mining: An Introduction", "http://databases.about.com/library/weekly/aa100700a.htm", "Data mining allows you to find the needles hidden in your haystacks of data. Learn how to use these advanced techniques to meet your business objectives. ... heard a good deal about data mining -- the database industry's latest buzzword ... of automated statistical analysis (or 'data mining') techniques, businesses are discovering new ...",
"Data Mining Project", "http://research.microsoft.com/dmx/datamining", "Search: All Research OnlineAll Microsoft.com. Data Mining: Efficient Data Exploration and Modeling. Overview. Goal ... will focus on exploiting data mining for advanced data summarization and also enable tighter ... database querying and data mining. Scalable Data Mining Algorithms: We are exploring ...",
"An Introduction to Data Mining", "http://www.thearling.com/text/dmwhite/dmwhite.htm", "... Data mining, the extraction of hidden predictive information from large databases, is a ... important information in their data warehouses. Data mining tools predict future trends ...",
"Untangling Text Data Mining", "http://www.sims.berkeley.edu/~hearst/papers/acl99/acl99-tdm.html", "... Untangling Text Data Mining. Marti A. Hearst. School of Information Management &amp;amp; Systems ... The possibilities for data mining from large text collections are virtually untapped ...",
"Data Mining Technologies", "http://www.data-mine.com/", "Provides Data Minining Software for Desktop and Real Time Needs ... Data Mining Technologies provides next generation decision support software and services for Data Mining and Business Intelligence applications ...",
"SQL Server Data Mining", "http://www.sqlserverdatamining.com/", "sql server | data mining. Welcome to SQLServerDataMining.com &amp;lt;we are hiring&amp;gt; ... This site has been designed by the SQL Server Data Mining team to provide the SQL Server community with access to and ...",
"Data Warehousing Information Center", "http://www.dwinfocenter.org/", "Provides information on tools and techniques to design, build, maintain, and retrieve information from a data warehouse.",
"ITworld.com - Data mining", "http://www.itworld.com/App/110/050805datamining", "... it into usable shape, however, requires sophisticated data mining tools. The same technology that police departments ... How does data mining work? Data mining is a subset of business ...",

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -