Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 1b9d133

Browse files
author
Peter Izsak
authored
Merge pull request #370 from NervanaSystems/v0.4_minor_patch
fix docs typos, formatting, and refs. add ABSA to main.rst
2 parents bd73011 + b21e11e commit 1b9d133

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

doc/source/absa.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ Arguments:
153153
References
154154
==========
155155

156-
.. [1] `Simple and Accurate Dependency Parsing Using Bidirectional LSTM Feature Representations <https://transacl.org/ojs/index.php/tacl/article/view/885/198>`__, Kiperwasser, E., & Goldberg, Y, Transactions Of The Association For Computational Linguistics (2106), 4, 313-327.
157-
.. [2] `Opinion word expansion and target extraction through double propagation <https://dl.acm.org/citation.cfm?id=1970422>`__, Guang Qiu, Bing Liu, Jiajun Bu, and Chun Chen, In Computational Linguistics, volume 37(1).
158-
.. [3] `Mining and Summarizing Customer Reviews <http://dx.doi.org/10.1145/1014052.1014073>`__, Minqing Hu and Bing Liu, Proceedings of the tenth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD-2004), pp. 168-177, 2004.
156+
.. [1] `Simple and Accurate Dependency Parsing Using Bidirectional LSTM Feature Representations <https://transacl.org/ojs/index.php/tacl/article/view/885/198>`__, Eliyahu Kiperwasser and Yoav Goldberg. 2016. Transactions of the Association of Computational Linguistics, 4:313327.
157+
.. [2] `Opinion Word Expansion and Target Extraction through Double Propagation <https://dl.acm.org/citation.cfm?id=1970422>`__, Guang Qiu, Bing Liu, Jiajun Bu, and Chun Chen. 2011. Computational Linguistics, 37(1): 9–27.
158+
.. [3] `Mining and Summarizing Customer Reviews <http://dx.doi.org/10.1145/1014052.1014073>`__, Minqing Hu and Bing Liu. 2004. In Proceedings of the Tenth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’04, pages 168177.
159159
160160
.. _Spacy: https://spacy.io

doc/source/absa_solution.rst

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ a statistical analysis of sentiment towards specific aspects in the inference da
3131

3232
The solution uses the opinion and aspect lexicons that are generated using NLP Architect's ABSA
3333
training model (see blue blocks in 'flow' diagram below). For more details regarding the training step
34-
see :doc:`ABSA <absa>`
34+
see :doc:`ABSA <absa>`.
3535

3636
The solution encapsulates the ABSA inference model (green blocks) and adds on top of it a
3737
statistical analysis module (grey block) for calculating the amount of positive and negative sentiment
@@ -61,23 +61,24 @@ blue and opinion terms are colored in green/red:
6161
Solution execution
6262
==================
6363

64-
The solution execution is divided to two parts - training A and inference:
64+
The solution execution is divided to two parts - training and inference:
6565

6666
Training
6767
========
6868

69-
See training under :doc:`ABSA <absa>`
69+
See training under :doc:`ABSA <absa>`.
7070

7171

7272
Inference
7373
=========
7474

75+
7576
Full code example is available at ``examples/absa/solution/absa_solution.py``.
7677
There are two training modes:
7778

78-
1. Providing solution data in a raw text format. In this case the solution flow will
79-
apply the dependency parser to the data:
8079

80+
**1.** Providing solution data in a raw text format. In this case the solution flow will
81+
apply the dependency parser to the data:
8182

8283
.. code:: python
8384
@@ -86,7 +87,7 @@ apply the dependency parser to the data:
8687
data='/path/to/text/file/or/directory')
8788
8889
89-
Arguments:
90+
**Arguments:**
9091

9192
``aspect_lex'=/path/to/aspects.csv'`` - path to aspect lexicon (csv file) that was produced by the training phase.
9293
aspect.csv may be manually edited for grouping alias aspect names (e.g. 'drinks' and 'beverages')
@@ -98,7 +99,7 @@ together. Simply copy all alias names to the same line in the csv file.
9899
separated by newlines or a single csv file containing one doc per line or a directory containing one raw
99100
text file per document.
100101

101-
Notes:
102+
**Notes:**
102103

103104
a. For demonstration purposes we provide a sample of tripadvisor.co.uk
104105
restaurants reviews under the `Creative Commons Attribution-Share-Alike 3.0 License <https://creativecommons.org/licenses/by-sa/3.0/>`__ (Copyright 2018 Wikimedia Foundation).
@@ -107,8 +108,8 @@ The dataset can is located at ``datasets/absa/tripadvisor_co_uk-travel_restauran
107108
b. By default, when the execution terminates, a browser window is opened, displaying the
108109
visualization UI.
109110

110-
111-
2. Providing parsed training data. In this case the solution flow skips the parsing step:
111+
|
112+
| **2.** Providing parsed training data. In this case the solution flow skips the parsing step:
112113
113114
.. code:: python
114115
@@ -117,7 +118,7 @@ visualization UI.
117118
parsed_data='/path/to/parsed/directory',
118119
ui=False)
119120
120-
Note:
121+
**Note:**
121122

122123
Setting ``ui=False`` disables the UI and enables to get the sentiment statistics as dataframe. This
123124
enables the user to use those statistics as input to his own custom built visualization.

doc/source/main.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ The library contains state-of-art and novel NLP and NLU models in a variety of t
4242
- Reading comprehension
4343
- Language modeling using Temporal Convolution Network
4444
- Unsupervised Crosslingual Word Embedding
45+
- Aspect Based Sentiment Analysis
4546
- Supervised sentiment analysis
4647
- Sparse and quantized neural machine translation
4748
- Relation Identification and cross document coreference

0 commit comments

Comments
 (0)