winstarwang / rasa_nlu_bert Goto Github PK
View Code? Open in Web Editor NEWrasa_nlu with bert, base on rasa_nlu 0.14.4
License: Apache License 2.0
rasa_nlu with bert, base on rasa_nlu 0.14.4
License: Apache License 2.0
你好,冒昧请问一下,如果我要要修改BERT做slot filling 和 intent detection,但是稍微改了一下bert模型,也可以在你这个上面跑吗
['can', "'", 't', 'find', 'it'] # result of message.get("tokens")
Traceback (most recent call last):
File "src/training/train.py", line 48, in <module>
trainer.train()
File "src/training/train.py", line 25, in train
self.trainer.train(training_data)
File "/home/shail/natural-language-processing/venv/lib/python3.5/site-packages/rasa_nlu/model.py", line 196, in train
**context)
File "/home/shail/natural-language-processing/venv/lib/python3.5/site-packages/rasa_nlu/extractors/crf_entity_extractor.py", line 140, in train
dataset = self._create_dataset(filtered_entity_examples)
File "/home/shail/natural-language-processing/venv/lib/python3.5/site-packages/rasa_nlu/extractors/crf_entity_extractor.py", line 149, in _create_dataset
dataset.append(self._from_json_to_crf(example, entity_offsets))
File "/home/shail/natural-language-processing/venv/lib/python3.5/site-packages/rasa_nlu/extractors/crf_entity_extractor.py", line 468, in _from_json_to_crf
return self._from_text_to_crf(message, ents)
File "/home/shail/natural-language-processing/venv/lib/python3.5/site-packages/rasa_nlu/extractors/crf_entity_extractor.py", line 529, in _from_text_to_crf
pattern = self.__pattern_of_token(message, i)
File "/home/shail/natural-language-processing/venv/lib/python3.5/site-packages/rasa_nlu/extractors/crf_entity_extractor.py", line 508, in __pattern_of_token
return c[i].get("pattern", {})
AttributeError: 'str' object has no attribute 'get'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.