Class PlaceCount

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

public class PlaceCount extends Object
Place metrics. Everything other than coords, countries, and filtered-out
Author:
ubaldino
  • Field Details

    • count

      public int count
    • place

      public org.opensextant.data.Place place
    • total

      public int total
    • label

      public String label
    • names

      public Set<String> names
  • Constructor Details

    • PlaceCount

      public PlaceCount(String l)
  • Method Details

    • add

      public void add(String nm)
    • getCount

      public int getCount()
    • getCountryCode

      public String getCountryCode()
    • getRatio

      public double getRatio()
      given a total number of ALL place mentions, you can derive a ratio, e.g., text ABC is 45% about province1, 34% about province2, etc.
    • toString

      public String toString()
      Overrides:
      toString in class Object