Example #1
0
        /// <summary>
        /// We use AlchemyAPI to get the page text for OpenCalais and Semantria.
        /// </summary>
        protected string GetPageText(string url)
        {
            AlchemyWrapper alchemy = new AlchemyWrapper();

            alchemy.Initialize();

            string      xml  = alchemy.GetUrlText(url);
            XmlDocument xdoc = new XmlDocument();

            xdoc.LoadXml(xml);

            return(xdoc.SelectSingleNode("//text").InnerText);
        }
Example #2
0
        protected async void InitializeNlp()
        {
            sbStatus.Text = "Initializing NLP's...";

            alchemy = await Task.Run(() =>
            {
                AlchemyWrapper api = new AlchemyWrapper();
                api.Initialize();
                return(api);
            });

            btnProcess.Enabled = true;
            sbStatus.Text      = "Ready";
        }
Example #3
0
		/// <summary>
		/// We use AlchemyAPI to get the page text for OpenCalais and Semantria.
		/// </summary>
		protected string GetPageText(string url)
		{
			AlchemyWrapper alchemy = new AlchemyWrapper();
			alchemy.Initialize();

			string xml = alchemy.GetUrlText(url);
			XmlDocument xdoc = new XmlDocument();
			xdoc.LoadXml(xml);

			return xdoc.SelectSingleNode("//text").InnerText;
		}
Example #4
0
		protected async void InitializeNlp()
		{
			sbStatus.Text = "Initializing NLP's...";

			alchemy = await Task.Run(() =>
			{
				AlchemyWrapper api = new AlchemyWrapper();
				api.Initialize();
				return api;
			});

			btnProcess.Enabled = true;
			sbStatus.Text = "Ready";
		}