private static void splitInSentences(HashSet<String> sentencesSet, String text) {
		
		if (inputType == inputTypes.PARAGRAPH) { // split in multiple sentences
			LinkedList<LinkedList<Word>> sentences = Splitting.tokenizeSentences(LVMorphologyReaderAndWriter.getAnalyzer(), text);
			for (LinkedList<Word> sentence : sentences) 
			{
				if(sentence != null)
				{
					String madeSentence = "";
					for(int w = 0; w < sentence.size(); w++)
					{
						madeSentence = madeSentence + " " + sentence.get(w);
					}
					madeSentence = madeSentence.trim();
					//pārbaudam, vai teikuma atšķiribas nav punkts teikuma beigas
					if(madeSentence.length() > 0 && madeSentence.lastIndexOf(".") >= 0) madeSentence = madeSentence.substring(0, madeSentence.length() - 1);
					sentencesSet.add(madeSentence.trim());
				}
			}
		} 
	}
private static void splitInSentences ( HashSet < String > sentencesSet , String text ) { if ( inputType == inputTypes . PARAGRAPH ) { LinkedList < LinkedList < Word > > sentences = Splitting . tokenizeSentences ( LVMorphologyReaderAndWriter . getAnalyzer ( ) , text ) ; for ( LinkedList < Word > sentence : sentences ) { if ( sentence != null ) { String madeSentence = "" ; for ( int w = 0 ; w < sentence . size ( ) ; w ++ ) { madeSentence = madeSentence + " " + sentence . get ( w ) ; } madeSentence = madeSentence . trim ( ) ; if ( madeSentence . length ( ) > 0 && madeSentence . lastIndexOf ( "." ) >= 0 ) madeSentence = madeSentence . substring ( 0 , madeSentence . length ( ) - 1 ) ; sentencesSet . add ( madeSentence . trim ( ) ) ; } } } }
FIXME - make it configurable