Created
August 27, 2020 10:33
-
-
Save willprice76/d3b4f2a87f40c910634d5bb801e87375 to your computer and use it in GitHub Desktop.
Class to represent training data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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