Class CountryCount

java.lang.Object
org.opensextant.extractors.geo.CountryCount

public class CountryCount extends Object
Country metrics
Author:
ubaldino
  • Field Details

    • count

      public int count
    • total

      public int total
    • country

      public org.opensextant.data.Country country
  • Constructor Details

    • CountryCount

      public CountryCount(org.opensextant.data.Country C)
    • CountryCount

      public CountryCount(String cc)
  • Method Details

    • getRatio

      public double getRatio()
      given a total number of ALL country mentions, you can derive a ratio, e.g., text ABC is 45% about country1, 34% about country2, etc. Set total attribute before calling this.
      Returns:
      double
    • toString

      public String toString()
      Overrides:
      toString in class Object