eventregistry - v11.0.0
    Preparing search index...

    Class Analytics

    Index
    • Identify the list of entities and nonentities mentioned in the text

      Parameters

      • text: string

        input text to annotate

      • Optionallang: string[]

        language of the provided document (can be an ISO2 or ISO3 code). If None is provided, the language will be automatically detected

      • OptionalcustomParams: { [name: string]: unknown }

      Returns Promise<Annotate>

    • Determine the set of up to 5 categories the text is about. Currently, only English text can be categorized!

      Parameters

      • text: string

        input text to categorize

      • taxonomy: "news" | "dmoz" = "dmoz"
      • Optionalconcepts: string[]

        optional list of concept URIs to bias categorization

      Returns Promise<Categorize>

    • Extract all available information about an article available at url url. Returned information will include article title, body, authors, links in the articles,...

      Parameters

      • url: string

        article url that'll be used for extraction

      • OptionalproxyUrl: string

        proxy that should be used for downloading article information. format: {schema}://{username}:{pass}@{proxy url/ip}

      • Optionalheaders: { [name: string]: unknown }
      • Optionalcookies: { [name: string]: unknown }

      Returns Promise<ExtractArticleInfo>

    • Extract named entities from the provided text. Supported languages are English, German, Spanish and Chinese.

      Parameters

      • text: string

      Returns Promise<unknown>

    • Parameters

      • text1: string
      • text2: string
      • distanceMeasure: "cosine" | "jaccard" = "cosine"

      Returns Promise<SentimentSimilarity>

    • determine the sentiment of the provided text in English language

      Parameters

      • text: string

        input text to categorize

      • method: string = "vocabulary"

        method to use to compute the sentiment. possible values are "vocabulary" (vocabulary based sentiment analysis) and "rnn" (neural network based sentiment classification)

      • sentences: number = 10
      • returnSentences: boolean = true

      Returns Promise<Sentiment>

    • Add the information extracted from the provided "text" to the topic with uri "uri".

      Parameters

      • uri: string

        uri of the topic (obtained by calling trainTopicCreateTopic method)

      • text: string

        text to analyze and extract information from

      Returns Promise<ER.Analytics.Response>

    • If the topic is already existing, clear the definition of the topic. Use this if you want to retrain an existing topic

      Parameters

      • uri: string

        uri of the topic (obtained by calling trainTopicCreateTopic method) to clear

      Returns Promise<ER.Analytics.Response>

    • Create a new topic to train. The user should remember the "uri" parameter returned in the result.

      Parameters

      • name: string

        name of the topic we want to create

      Returns Promise<ER.Analytics.Response>

      object containing the "uri" property that should be used in the follow-up call to trainTopic* methods

    • Create a new topic and train it using the tweets that match the twitterQuery

      Parameters

      • twitterQuery: string

        string containing the content to search for. It can be a Twitter user account (using "@" prefix or user's Twitter url),a hash tag (using "#" prefix) or a regular keyword.

      • args: TrainTopicOnTweetsArguments = {}

        Object which contains a host of optional parameters

      Returns Promise<ER.Analytics.Response>