(Sorry if the name is a red herring, by the way)
Background:
I am developing a map of all the tweets in the world in real time using the Stream Streaming API and ASP.NET SignalR. I use the Twitterinvi C # Twitter library to asynchronously translate tweets to the browser using SignalR. Everything works as expected - see http://dev.wherelionsroam.co.uk for an idea of this.
The next development step involves analyzing all the textual data of the tweet using the Parsing library in the Stanford Natural Language ( http://nlp.stanford.edu/software/corenlp.shtml ), in particular (also called CRFClassifier) so that I can extract meaningful metadata from each tweet (e.g., people, places, and organizations mentioned). The desired result is that I can identify the people, places and organizations that many people talk about (similar to the "Trend" concept) and transfer them to all clients using SignalR. I know that the Twitter API has methods GET trends, but that would not be fun, would it ?!
Here are the main classes in my application:
Main classes:
TweetModel.cs (contains all the tweet information passed to it from the Streaming API):
public class TweetModel
{
public string User { get; set; }
public string Text { get; set; }
public DateTime CreatedAt { get; set; }
public string ImageUrl { get; set; }
public double Longitude { get; set; }
public double Latitude { get; set; }
public string ProfileUrl { get; set; }
public List<NamedEntity> entities = new List<NamedEntity>();
}
Abstract class NamedEntity:
public abstract class NamedEntity
{
protected string _name;
public abstract string Name { get; set; }
}
Person, , NamedEntity:
public class Person : NamedEntity
{
public override string Name
{
get
{
return _name;
}
set
{
_name = value;
}
}
public string entityType = "Person";
}
TweetParser:
public class TweetParser
{
public static List<TweetModel> tweets = new List<TweetModel>();
public TweetParser(TweetModel tweet)
{
ProcessTweet(tweet);
}
}
:
, NER, , , "PERSON" "Luis Suarez" "PLACE" "New York". NamedEntity, , NER ( PERSON, LOCATION, ORGANISATION)
:
, , " " ( , ), NamedEntity ( List<NamedEntity>, TweetModel), " " , TweetModel > List<NamedEntity> . , , , !
:

, ; , ! src . https://github.com/adaam2/FinalUniProject