soujanyaporia / aspect-extraction Goto Github PK
View Code? Open in Web Editor NEWAspect extraction from product reviews - window-CNN+maxpool+CRF, BiLSTM+CRF, MLP+CRF
License: Apache License 2.0
Aspect extraction from product reviews - window-CNN+maxpool+CRF, BiLSTM+CRF, MLP+CRF
License: Apache License 2.0
Hello
First of all, thank you for your effort. I have a question about the model's evaluation, what is the difference between chunk-based evaluation and partial matching based evaluation? and why there is a huge difference between their results? I am using the F1 measure for the evaluation of my dataset and got very different results.
Also, I want to ask you if there is any paper to cite the window-CNN+maxpool+CRF model?
Thanks,
Traceback (most recent call last):
File "/home/wsy/python36_cuda9/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 2349, in get_attr
c_api.TF_OperationGetAttrValueProto(self._c_op, name, buf)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Operation 'ExtractImagePatches' has no attr named '_XlaCompile'.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/wsy/python36_cuda9/lib/python3.6/site-packages/tensorflow/python/ops/gradients_impl.py", line 391, in _MaybeCompile
xla_compile = op.get_attr("_XlaCompile")
File "/home/wsy/python36_cuda9/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 2353, in get_attr
raise ValueError(str(e))
ValueError: Operation 'ExtractImagePatches' has no attr named '_XlaCompile'.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "train.py", line 26, in
main()
File "train.py", line 12, in main
model.build()
File "/home/wsy/qa/aspect_extraction-master/model/aspect_model.py", line 409, in build
self.config.clip)
File "/home/wsy/qa/aspect_extraction-master/model/base_model.py", line 54, in add_train_op
grads, vs= zip(*optimizer.compute_gradients(loss))
File "/home/wsy/python36_cuda9/lib/python3.6/site-packages/tensorflow/python/training/optimizer.py", line 511, in compute_gradients
colocate_gradients_with_ops=colocate_gradients_with_ops)
File "/home/wsy/python36_cuda9/lib/python3.6/site-packages/tensorflow/python/ops/gradients_impl.py", line 532, in gradients
gate_gradients, aggregation_method, stop_gradients)
File "/home/wsy/python36_cuda9/lib/python3.6/site-packages/tensorflow/python/ops/gradients_impl.py", line 701, in _GradientsHelper
lambda: grad_fn(op, *out_grads))
File "/home/wsy/python36_cuda9/lib/python3.6/site-packages/tensorflow/python/ops/gradients_impl.py", line 396, in _MaybeCompile
return grad_fn() # Exit early
File "/home/wsy/python36_cuda9/lib/python3.6/site-packages/tensorflow/python/ops/gradients_impl.py", line 701, in
lambda: grad_fn(op, *out_grads))
File "/home/wsy/python36_cuda9/lib/python3.6/site-packages/tensorflow/python/ops/array_grad.py", line 749, in _ExtractImagePatchesGrad
rows_out = int(ceil(rows_in / stride_r))
TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'
could you help me?
what to change in the code to support other language like Arabic or Germany.
@soujanyaporia. I don't seem to understand your readme correctly.
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.