-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add API to give preanalysed sentences in an already parsed native typ…
…e format Thx to TeMPuS
- Loading branch information
Showing
7 changed files
with
145 additions
and
41 deletions.
There are no files selected for viewing
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
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
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
29 changes: 29 additions & 0 deletions
29
src/main/java/hu/ppke/itk/nlpg/purepos/common/TAnalysisItem.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package hu.ppke.itk.nlpg.purepos.common; | ||
|
||
public class TAnalysisItem { | ||
protected String lemma, tag; | ||
protected Double prob; | ||
|
||
public TAnalysisItem(String lemma, String ana, Double prob) { | ||
this.lemma = lemma; | ||
this.tag = ana; | ||
this.prob = prob; | ||
} | ||
|
||
public static TAnalysisItem create(String lemma, String ana) { | ||
Double prob = 1.0; | ||
return new TAnalysisItem(lemma, ana, prob); | ||
} | ||
|
||
public String getLemma() { | ||
return lemma; | ||
} | ||
|
||
public String getTag() { | ||
return tag; | ||
} | ||
|
||
public Double getProb() { | ||
return prob; | ||
} | ||
} |
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
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
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