定制 codag/alchemyapi-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

codag/alchemyapi-bundle

Composer 安装命令:

composer require codag/alchemyapi-bundle

包简介

Symfony2 Bundle for AlchemyAPI integration

README 文档

README

This bundle provides an AlchemyAPI integration for your Symfony2 Project.

Build Status Total Downloads Latest Stable Version

AlchemyAPI Method Supported

  • Author Extraction
  • Concept Tagging
  • Content Scraping
  • Entity Extraction
    • WebAPI
  • Keyword Extraction
  • Language Detection
  • Microformats Parsing
  • RSS/ATOM
  • Relation Extraction
  • Sentiment Analysis
  • Text Categorization
  • Text Extraction

Do you need support for a method not on the list or not completed yet? Please submit an issue or feel free to contribute!

Installation

  1. Add CodagAlchemyApiBundle to your composer.json
  2. Enable the bundle
  3. Configure the bundle

Step 1: Add CodagAlchemyApiBundle to your composer.json

{
    "require": {
        "codag/alchemyapi-bundle": "dev-master"
    }
}

Update your project dependencies:

php composer.phar update codag/alchemyapi-bundle

Step 2: Enable the bundle

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Codag\AlchemyApiBundle\CodagAlchemyApiBundle(),
    );
}

Step 3: Configure the bundle

Yml configuration:

# app/config/config.yml

codag_alchemy_api:
    api_key: 831370096236c6db90393a1d206010ffffffffff

Usage

This bundle provides the service codag.alchemyapi

<?php
$alchemy = $this->get('codag.alchemyapi');

Entity Extraction

HTML API

//TODO

Text API

//TODO

Web API (URLGetRankedNamedEntities)

$alchemy = $this->alchemy;
$entityExtraction = $alchemy
    ->getEntityExtraction()
    ->getWeb();
$entityExtraction->setUrl($this->url);
$entityExtraction->setOutputMode('json');
$data = $entityExtraction->getData();

##Contribute

If the bundle doesn't allow you to customize an option, I invite you to fork the project, create a feature branch, and send a pull request.

To ensure a consistent code base, you should make sure the code follows the Coding Standards.

##License

This bundle is under the MIT license. See the complete license here.

统计信息

  • 总下载量: 1.01k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-07-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固