答案 0 :(得分:0)
TfidfVectorizer
因为你在组件中有大写字母C:
tfidf_vectorizer = TfidfVectorizer(vocabulary=terms) # add your other params here
请尝试:
WARNING in ./src/app/Courses.Component.ts
There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem
with other case-semantic.
Use equal casing.
答案 1 :(得分:0)
我认为这对于一个组件来说已经足够了。你能在浏览器的日志中显示你的错误吗?在Angular2 +中,您应该使用ng generate component componentname
创建一个组件,请参阅here。