|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectipipan.spejd.readers.Reader
ipipan.spejd.readers.PlainTextReader
public class PlainTextReader
Field Summary | |
---|---|
int |
ogonkified
|
int |
ogonkified_total
|
Constructor Summary | |
---|---|
PlainTextReader(Config conf,
Stempelator stemmer)
|
Method Summary | |
---|---|
java.util.List<java.lang.String> |
generateCandidates(java.lang.String orth)
Generate a list of ogonkified words - candidates to check. |
java.lang.String |
getNextToken(int pos)
Utility to see what word starts from position in domain.com |
Entity |
loadToken()
Move to another word and run Morfeusz over it. |
boolean |
nextSentence(java.io.PrintStream out)
Move on to the next sentence. |
java.lang.String |
readTextFile(java.lang.String fileName,
java.nio.charset.Charset inputCharset)
Reads the content of the text file and returns it as a string |
void |
setFileContents(java.lang.String fileContents)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int ogonkified
public int ogonkified_total
Constructor Detail |
---|
public PlainTextReader(Config conf, Stempelator stemmer)
Method Detail |
---|
public java.lang.String readTextFile(java.lang.String fileName, java.nio.charset.Charset inputCharset) throws java.lang.Error
fileName
- The name of the file to read.
marker.Error
- When somethings goes wrong with the reading.
java.lang.Error
public java.lang.String getNextToken(int pos)
pos
- start word construction here
public Entity loadToken()
loadToken
in class Reader
public java.util.List<java.lang.String> generateCandidates(java.lang.String orth)
orth
- form to generate candidates from
public void setFileContents(java.lang.String fileContents)
public boolean nextSentence(java.io.PrintStream out)
Reader
nextSentence
in class Reader
out
- result file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |