more improvements to interface
This commit is contained in:
@@ -1,3 +1,14 @@
|
||||
/*
|
||||
import nltk
|
||||
sentence = """At eight o'clock on Thursday morning
|
||||
... Arthur didn't feel very good."""
|
||||
tokens = nltk.word_tokenize(sentence)
|
||||
tagged = nltk.pos_tag(tokens)
|
||||
tagged[0:6]
|
||||
entities = nltk.chunk.ne_chunk(tagged)
|
||||
entities
|
||||
*/
|
||||
|
||||
:- use_module(library(python)).
|
||||
:- use_module(library(maplist)).
|
||||
|
||||
|
Reference in New Issue
Block a user