Hi @japborst, to be honest I'm new to Dart.
In this code, I'm trying to make one full sentence to be stem for each word.
but I encountered it, if full sentence its only stem the last word.
How can I achieve for full sentence stemming, am I missing something here?
class data{
var result1;
var result2;
var result3;
data({
this.result1,
this.result2,
this.result3,
}
);
}
class data_db{
static List<data> d_db =[
data(
result1 : 'Kicking running JumPing',
result2 : 'Running',
result3 : 'Jumping'
),
];
}
import 'package:simple_application/SnowballStemmer.dart';
import 'package:simple_application/data.dart';
String data1 ="";
String data2 = "";
String data3 = "";
int index = 0;
void main(List<String> arguments) {
SnowballStemmer stemmer1 = SnowballStemmer();
data1 =stemmer1.stem(data_db.d_db[index].result1);
data2 =stemmer1.stem(data_db.d_db[index].result2);
data3 =stemmer1.stem(data_db.d_db[index].result3);
print(data1);
print(data2);
print(data3);
}
DEBUG CONSOLE
Connecting to VM Service at http://127.0.0.1:44881/Cu9X-H9iBW4=/
kicking running jump
run
jump
Exited
Hi @japborst, to be honest I'm new to Dart.
In this code, I'm trying to make one full sentence to be stem for each word.
but I encountered it, if full sentence its only stem the last word.
How can I achieve for full sentence stemming, am I missing something here?
DEBUG CONSOLE