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 strings in list: http://nlp.stanford.edu/nlp/javadoc/javanlp/edu/stanford/nlp/process/documentpreprocessor.html , haswords. should go through , remove tostring() or find out concrete implementation.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -