c# - cant remove element from java.util.list -
i'm using java.util in c# program. want remove element list, don't know why is not working.
foreach (list sentence in new documentpreprocessor(clfile)) { //int = sentence.size(); string rm = "aspect"; object objstr = rm; sentence.remove(objstr); string temp2 = string.join(",", sentence.toarray()); ... }
after execution of above coe word "aspect" still there in list sentence.
ps: document preprocessor belongs to, edu.stanford.nlp.process
according javadoc of java version, there no string
s in list: http://nlp.stanford.edu/nlp/javadoc/javanlp/edu/stanford/nlp/process/documentpreprocessor.html , hasword
s. should go through , remove tostring() or find out concrete implementation.
Comments
Post a Comment