/// Json-cpp amalgated header (http://jsoncpp.sourceforge.net/).
/// It is intended to be used with #include "json/json.h"
// //////////////////////////////////////////////////////////////////////
// Beginning of content of file: LICENSE
// //////////////////////////////////////////////////////////////////////
/*
The JsonCpp library's source code, including accompanying documentation,
tests and demonstration applications, are licensed under the following
conditions...
Baptiste Lepilleur and The JsonCpp Authors explicitly disclaim copyright in all
jurisdictions which recognize such a disclaimer. In such jurisdictions,
this software is released into the Public Domain.
In jurisdictions which do not recognize Public Domain property (e.g. Germany as of
2010), this software is Copyright (c) 2007-2010 by Baptiste Lepilleur and
The JsonCpp Authors, and is released under the terms of the MIT License (see below).
In jurisdictions which recognize Public Domain property, the user of this
software may choose to accept it either as 1) Public Domain, 2) under the
conditions of the MIT License (see below), or 3) under the terms of dual
Public Domain/MIT License conditions described here, as they choose.
The MIT License is about as close to Public Domain as a license can get, and is
described in clear, concise terms at:
http://en.wikipedia.org/wiki/MIT_License
The full text of the MIT License follows:
========================================================================
Copyright (c) 2007-2010 Baptiste Lepilleur and The JsonCpp Authors
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
========================================================================
(END LICENSE TEXT)
The MIT license is compatible with both the GPL and commercial
software, affording one all of the rights of Public Domain with the
minor nuisance of being required to keep the above copyright notice
and license text in the source code. Note also that by accepting the
Public Domain "license" you can re-license your copy using whatever
license you like.
*/
// //////////////////////////////////////////////////////////////////////
// End of content of file: LICENSE
// //////////////////////////////////////////////////////////////////////
#ifndef JSON_AMALGATED_H_INCLUDED
# define JSON_AMALGATED_H_INCLUDED
/// If defined, indicates that the source file is amalgated
/// to prevent private header inclusion.
#define JSON_IS_AMALGAMATION
// //////////////////////////////////////////////////////////////////////
// Beginning of content of file: include/json/version.h
// //////////////////////////////////////////////////////////////////////
// DO NOT EDIT. This file (and "version") is generated by CMake.
// Run CMake configure step to update it.
#ifndef JSON_VERSION_H_INCLUDED
# define JSON_VERSION_H_INCLUDED
# define JSONCPP_VERSION_STRING "1.8.3"
# define JSONCPP_VERSION_MAJOR 1
# define JSONCPP_VERSION_MINOR 8
# define JSONCPP_VERSION_PATCH 3
# define JSONCPP_VERSION_QUALIFIER
# define JSONCPP_VERSION_HEXA ((JSONCPP_VERSION_MAJOR << 24) | (JSONCPP_VERSION_MINOR << 16) | (JSONCPP_VERSION_PATCH << 8))
#ifdef JSONCPP_USING_SECURE_MEMORY
#undef JSONCPP_USING_SECURE_MEMORY
#endif
#define JSONCPP_USING_SECURE_MEMORY 0
// If non-zero, the library zeroes any memory that it has allocated before
// it frees its memory.
#endif // JSON_VERSION_H_INCLUDED
// //////////////////////////////////////////////////////////////////////
// End of content of file: include/json/version.h
// //////////////////////////////////////////////////////////////////////
// //////////////////////////////////////////////////////////////////////
// Beginning of content of file: include/json/config.h
// //////////////////////////////////////////////////////////////////////
// Copyright 2007-2010 Baptiste Lepilleur and The JsonCpp Authors
// Distributed under MIT license, or public domain if desired and
// recognized in your jurisdiction.
// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
#ifndef JSON_CONFIG_H_INCLUDED
#define JSON_CONFIG_H_INCLUDED
#include <stddef.h>
#include <string> //typedef String
#include <stdint.h> //typedef int64_t, uint64_t
/// If defined, indicates that json library is embedded in CppTL library.
//# define JSON_IN_CPPTL 1
/// If defined, indicates that json may leverage CppTL library
//# define JSON_USE_CPPTL 1
/// If defined, indicates that cpptl vector based map should be used instead of
/// std::map
/// as Value container.
//# define JSON_USE_CPPTL_SMALLMAP 1
// If non-zero, the library uses exceptions to report bad input instead of C
// assertion macros. The default is to use exceptions.
#ifndef JSON_USE_EXCEPTION
#define JSON_USE_EXCEPTION 1
#endif
/// If defined, indicates that the source file is amalgated
/// to prevent private header inclusion.
/// Remarks: it is automatically defined in the generated amalgated header.
// #define JSON_IS_AMALGAMATION
#ifdef JSON_IN_CPPTL
#include <cpptl/config.h>
#ifndef JSON_USE_CPPTL
#define JSON_USE_CPPTL 1
#endif
#endif
#ifdef JSON_IN_CPPTL
#define JSON_API CPPTL_API
#elif defined(JSON_DLL_BUILD)
#if defined(_MSC_VER) || defined(__MINGW32__)
#define JSON_API __declspec(dllexport)
#define JSONCPP_DISABLE_DLL_INTERFACE_WARNING
#endif // if defined(_MSC_VER)
#elif defined(JSON_DLL)
#if defined(_MSC_VER) || defined(__MINGW32__)
#define JSON_API __declspec(dllimport)
#define JSONCPP_DISABLE_DLL_INTERFACE_WARNING
#endif // if defined(_MSC_VER)
#endif // ifdef JSON_IN_CPPTL
#if !defined(JSON_API)
#define JSON_API
#endif
// If JSON_NO_INT64 is defined, then Json only support C++ "int" type for
// integer
// Storages, and 64 bits integer support is disabled.
// #define JSON_NO_INT64 1
#if defined(_MSC_VER) // MSVC
# if _MSC_VER <= 1200 // MSVC 6
// Microsoft Visual Studio 6 only support conversion from __int64 to double
// (no conversion from unsigned __int64).
# define JSON_USE_INT64_DOUBLE_CONVERSION 1
// Disable warning 4786 for VS6 caused by STL (identifier was truncated to '255'
// characters in the debug information)
// All projects I've ever seen with VS6 were using this globally (not bothering
// with pragma push/pop).
# pragma warning(disable : 4786)
# endif // MSVC 6
# if _MSC_VER >= 1500 // MSVC 2008
/// Indicates that the following function is deprecated.
# define JSONCPP_DEPRECATED(message) __declspec(deprecated(message))
# endif
#endif // defined(_MSC_VER)
// In c++11 the override keyword allows you to explicity define that a function
// is intended to override the base-class version. This makes the code more
// managable and fixes a set of common hard-to-find bugs.
#if __cplusplus >= 201103L
# define JSONCPP_OVERRIDE override
# define JSONCPP_NOEXCEPT noexcept
#elif defined(_MSC_VER) && _MSC_VER > 1600 && _MSC_VER < 1900
# define JSONCPP_OVERRIDE override
# define JSONCPP_NOEXCEPT throw()
#elif defined(_MSC_VER) && _MSC_VER >= 1900
# define JSONCPP_OVERRIDE override
# define JSONC
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
一个轻量级的文档检索系统 该项目是一个用于网页查询的轻量级搜索引擎。实现了从爬取网页,处理网页,显示结果等整个搜索引擎的流程。该项目分为两个个阶段:线下阶段,线上阶段。线下阶段使用tinyxml2解析爬取的网页,以此建立网页库,网页偏移库;使用cppjieba进行中文分词,使用SimHash算法库 进行网页去重并生成新的网页库与网页偏移库,去重后通过TF-IDF算法建立倒排索引。线上阶段则采用了Reactor + 线程池的网络库,客户端发送查询词后,服务器计算文本特征并建立VSM模型,并使用余弦相似度算法匹配网页,将匹配的网页通过余弦值排序后使用jsoncpp封装后发送给前端,本项目使用Redis作为Cache缓存,log4cpp添加日志系统。
资源推荐
资源详情
资源评论
收起资源包目录
人工智能-项目实践-信息检索-一个轻量级的文档检索系统 (170个子文件)
jsoncpp.cc 154KB
tinyxml2.cc 69KB
tinyxml2.cc 69KB
WordQuery.cc 7KB
PageLibPreprocessor.cc 4KB
EventLoop.cc 4KB
RssReader.cc 3KB
WebPage.cc 3KB
WebPage.cc 2KB
TCPConnection.cc 2KB
SocketIO.cc 2KB
WordQueryServer.cc 2KB
Configuration.cc 2KB
Configuration.cc 2KB
mylogger.cc 1KB
TaskQueue.cc 1KB
DirScanner.cc 1KB
Threadpool.cc 1KB
Acceptor.cc 1KB
PageLib.cc 867B
Condition.cc 854B
Thread.cc 816B
InetAddress.cc 765B
TCPServer.cc 582B
MutexLock.cc 573B
Socket.cc 459B
TestOffline.cc 440B
TestOnline.cc 432B
online.conf 807B
offline.conf 663B
site.css 775B
json.h 70KB
tinyxml2.h 67KB
tinyxml2.h 67KB
json-forwards.h 11KB
jenkins.h 10KB
Configuration.h 2KB
Configuration.h 2KB
mylogger.h 2KB
EventLoop.h 2KB
Redis.h 1KB
TCPConnection.h 1KB
WordSegmentation.h 1KB
WordSegmentation.h 952B
WebPage.h 895B
WordQuery.h 779B
WebPage.h 772B
RssReader.h 631B
Threadpool.h 626B
WordQueryServer.h 606B
Thread.h 557B
TaskQueue.h 515B
MutexLock.h 504B
Acceptor.h 473B
InetAddress.h 471B
PageLibPreprocessor.h 468B
TCPServer.h 458B
DirScanner.h 351B
PageLib.h 316B
SocketIO.h 309B
Condition.h 306B
Nocopyble.h 237B
Socket.h 213B
Md5.hpp 12KB
Md5.hpp 12KB
StringUtil.hpp 9KB
StringUtil.hpp 9KB
DictTrie.hpp 7KB
DictTrie.hpp 7KB
Unicode.hpp 6KB
Unicode.hpp 6KB
TextRankExtractor.hpp 6KB
TextRankExtractor.hpp 6KB
Simhasher.hpp 5KB
HMMSegment.hpp 5KB
HMMSegment.hpp 5KB
Trie.hpp 4KB
Trie.hpp 4KB
Closure.hpp 4KB
Closure.hpp 4KB
KeywordExtractor.hpp 4KB
KeywordExtractor.hpp 4KB
MPSegment.hpp 4KB
MPSegment.hpp 4KB
Jieba.hpp 3KB
Jieba.hpp 3KB
HMMModel.hpp 3KB
HMMModel.hpp 3KB
StdExtension.hpp 3KB
StdExtension.hpp 3KB
MixSegment.hpp 3KB
MixSegment.hpp 3KB
LocalVector.hpp 3KB
LocalVector.hpp 3KB
QuerySegment.hpp 3KB
QuerySegment.hpp 3KB
FullSegment.hpp 2KB
FullSegment.hpp 2KB
Config.hpp 2KB
Config.hpp 2KB
共 170 条
- 1
- 2
资源评论
博士僧小星
- 粉丝: 1769
- 资源: 5875
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功