Skip to content
Snippets Groups Projects
Commit 9e78f6fd authored by Winnie Carole Tongle Djoukeng's avatar Winnie Carole Tongle Djoukeng
Browse files

add the variable spacyservice to the constructor and add the method...

add the variable spacyservice to the constructor and add the method keywordtospacy to the button(send to spacy)
parent f8e88e3b
Branches
Tags
No related merge requests found
......@@ -113,7 +113,8 @@
(click)="openConfirmDialog(keyword)">
<mat-icon class="red">delete</mat-icon>
</button>
<button class="margin-right" mat-icon-button style="align-self:flex-end;">send to spacy
<button class="margin-right" mat-icon-button style="align-self:flex-end;"
(click)="keywordtoSpacy(keyword.keyword,model.value.toString())">send to spacy
</button>
</div>
......
......@@ -93,6 +93,7 @@ export class TopicCloudAdministrationComponent implements OnInit {
private notificationService: NotificationService,
private authenticationService: AuthenticationService,
private translateService: TranslateService,
private spacyService: SpacyService,
private langService: LanguageService) {
this.langService.langEmitter.subscribe(lang => {
......@@ -231,12 +232,8 @@ export class TopicCloudAdministrationComponent implements OnInit {
}
return undefined;
}
commentLang = [
{ lang: 'tagkeyword' },
{ lang: 'spacykeyword' },
];
selectedLang = localStorage.getItem('currentLang');
comment: Comment;
keywordtoSpacy(text: string,model: string) {
}
}
interface Keyword {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment