Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@willprice76
Created August 27, 2020 10:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save willprice76/d3b4f2a87f40c910634d5bb801e87375 to your computer and use it in GitHub Desktop.
Save willprice76/d3b4f2a87f40c910634d5bb801e87375 to your computer and use it in GitHub Desktop.
Class to represent training data
package org.example.sparknlp;
public class TextData {
private String text;
private String label;
public TextData(String text, String label) {
this.text = text;
this.label = label;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment