class TaggedWord {

  private final String lemma;
  private final String posTag;

  public TaggedWord(String lemma, String posTag) {
    this.lemma = lemma;
    this.posTag = posTag;
  }

  public String getLemma() {
    return lemma;
  }

  public String getPosTag() {
    return posTag;
  }

  @Override
  public String toString() {
    return lemma + "/" + posTag;
  }

  @Override
  public boolean equals(Object o) {<FILL_FUNCTION_BODY>}

  @Override
  public int hashCode() {
    return Objects.hash(lemma, posTag);
  }
}

    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    TaggedWord other = (TaggedWord) o;
    return Objects.equals(lemma, other.lemma) && Objects.equals(posTag, other.posTag);
  
<no_super_class>