
gr.demokritos.iit.conceptualIndex.structs.Concatenation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of JInsect Show documentation
Show all versions of JInsect Show documentation
The JINSECT toolkit is a Java-based toolkit and library that supports and demonstrates the use of n-gram graphs within Natural Language Processing applications, ranging from summarization and summary evaluation to text classification and indexing.
The newest version!
/*
* Concatenation.java
*
* Created on 11 Οκτώβριος 2006, 5:11 μμ
*
*/
package gr.demokritos.iit.conceptualIndex.structs;
import java.util.ArrayList;
import java.util.Iterator;
/** A list subclass indicative of concatenation between elements.
*
* @author ggianna
*/
public class Concatenation extends ArrayList {
/** Returns a string representation of this concatenation, using distinctive notation.
*/
public String toString() {
String sRes = "[";
Iterator iIter = iterator();
while (iIter.hasNext()) {
Object oNext = iIter.next();
sRes += oNext.toString();
if (iIter.hasNext())
sRes += ",";
}
sRes += "]";
return sRes;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy