Sentiment Radar
跨平台(小红书、Twitter、Reddit)品牌情绪分析与报告生成工具。
基于NIH、NSF等机构资助摘要,用NLP分析预测未来3-5年科研资助趋势。
openclaw skills install @aipoch-ai/funding-trend-forecaster命令、参数、文件名以原文为准
ID: 200
Version: 1.0.0
Author: OpenClaw Agent
License: MIT
Funding Trend Forecaster 是一款智能分析工具,利用自然语言处理(NLP)技术分析全球主要科研资助机构(NIH、NSF、Horizon Europe)已资助项目摘要,预测未来 3-5 年的资助偏好变化趋势。
# 进入技能目录
cd skills/funding-trend-forecaster
# 安装依赖
pip install -r requirements.txt
# 下载 NLTK 数据
python -c "import nltk; nltk.download('punkt'); nltk.download('stopwords'); nltk.download('wordnet')"requests>=2.28.0
beautifulsoup4>=4.11.0
pandas>=1.5.0
numpy>=1.23.0
scikit-learn>=1.1.0
textblob>=0.17.1
nltk>=3.7
matplotlib>=3.6.0
seaborn>=0.12.0
wordcloud>=1.8.0
python-dateutil>=2.8.0# 执行完整分析流程
python scripts/main.py --analyze-all --output report.json
# 仅分析特定机构
python scripts/main.py --source nih --months 6
# 生成可视化报告
python scripts/main.py --visualize --input data.json --output charts/
# 查看趋势预测结果
python scripts/main.py --forecast --years 5 --output forecast.jsonfrom scripts.main import FundingTrendForecaster
# 初始化预测器
forecaster = FundingTrendForecaster()
# 收集数据
forecaster.collect_data(sources=['nih', 'nsf', 'horizon_europe'], months=6)
# 执行分析
results = forecaster.analyze_trends()
# 生成预测
forecast = forecaster.predict_trends(years=5)
# 导出报告
forecaster.export_report(output_path='report.pdf', format='pdf')| 参数 | 类型 | 默认值 | 是否必需 | 说明 |
|---|---|---|---|---|
--analyze-all | 标志位 | false | 否 | 对所有数据源执行完整分析流程 |
--source | 字符串 | - | 否 | 指定要分析的机构(nih, nsf, horizon_europe) |
--months | 整数 | 6 | 否 | 分析的历史数据月数 |
--years | 整数 | 5 | 否 | 预测未来年数 |
--visualize | 标志位 | false | 否 | 生成可视化图表 |
--forecast | 标志位 | false | 否 | 生成趋势预测 |
--input, -i | 字符串 | - | 否 | 输入数据文件路径(用于可视化/预测) |
--output, -o | 字符串 | - | 否 | 输出文件路径 |
--config | 字符串 | config.json | 否 | 配置文件路径 |
| 机构 | 数据源 URL | 更新频率 |
|---|---|---|
| NIH | https://reporter.nih.gov/ | 每日 |
| NSF | https://www.nsf.gov/awardsearch/ | 每日 |
| Horizon Europe | https://ec.europa.eu/info/funding-tenders/opportunities/ | 每周 |
创建 config.json 文件以自定义分析参数:
{
"sources": {
"nih": {
"enabled": true,
"base_url": "https://reporter.nih.gov/",
"max_results": 1000
},
"nsf": {
"enabled": true,
"base_url": "https://www.nsf.gov/awardsearch/",
"max_results": 1000
},
"horizon_europe": {
"enabled": true,
"base_url": "https://ec.europa.eu/info/funding-tenders/",
"max_results": 500
}
},
"nlp": {
"language": "en",
"min_word_length": 3,
"max_topics": 20,
"stop_words": ["research", "study", "project"]
},
"forecast": {
"method": "lda_trend",
"confidence_level": 0.95,
"years_ahead": 5
}
}{
"metadata": {
"generated_at": "2024-01-15T10:30:00Z",
"data_period": "2023-07-01 to 2024-01-01",
"sources": ["nih", "nsf", "horizon_europe"],
"total_projects": 15420
},
"trend_analysis": {
"top_keywords": [
{"term": "artificial intelligence", "frequency": 342, "growth": 0.45},
{"term": "climate change", "frequency": 298, "growth": 0.32}
],
"emerging_topics": [
{"topic": "Large Language Models", "projects": 89, "trend": "rising"},
{"topic": "Carbon Capture", "projects": 156, "trend": "stable"}
],
"funding_shifts": {
"increasing": ["AI/ML", "Climate Tech", "Quantum Computing"],
"decreasing": ["Traditional Materials", "Fossil Fuels Research"]
}
},
"forecast": {
"2025": {
"predicted_hot_topics": ["Generative AI", "Gene Editing", "Fusion Energy"],
"confidence": 0.87
},
"2026-2029": {
"long_term_trends": ["AGI Safety", "Personalized Medicine", "Space Mining"],
"confidence": 0.72
}
}
}markdown
funding-trend-forecaster/
├── scripts/
│ ├── main.py # 主入口文件
│ ├── collectors/ # 数据采集模块
│ │ ├── __init__.py
│ │ ├── nih_collector.py
│ │ ├── nsf_collector.py
│ │ └── horizon_collector.py
│ ├── analyzers/ # NLP 分析模块
│ │ ├── __init__.py
│ │ ├── text_processor.py
│ │ ├── topic_modeler.py
│ │ └── trend_detector.py
│ ├── predictors/ # 预测模块
│ │ ├── __init__.py
│ │ └── trend_forecaster.py
│ └── utils/ # 工具模块
│ ├── __init__.py
│ ├── config.py
│ └── visualizer.py
├── data/ # 数据存储目录
│ ├── raw/
│ └── processed/
├── output/ # 输出目录
├── config.json # 配置文件
├── requirements.txt # Python 依赖项
└── SKILL.md # 本说明文档
MIT License - 请参见项目根目录下的 LICENSE 文件
*由 OpenClaw Agent 生成 | Skill ID: 200*
| 风险指标 | 评估结果 | 等级 |
|---|---|---|
| 代码执行 | 包含外部工具的 Python 脚本 | 高 |
| 网络访问 | 外部 API 调用 | 高 |
| 文件系统访问 | 读写数据 | 中 |
| 指令篡改 | 使用标准提示规则 | 低 |
| 数据泄露 | 数据处理过程安全 | 中 |
# 安装 Python 依赖
pip install -r requirements.txt- 性能优化
- 增加新功能支持
已收录 5 个 Skill