Skip to content

Commit 85e4227

Browse files
committed
Added imports under the Usage section.
1 parent 152c897 commit 85e4227

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,14 @@ The following functions have proven useful when looking at AQAnnotations. When
8888

8989
#### Usage
9090

91-
The typical usage pattern will be something like the following. In the below example, we are finding those sentences (identified by Genia) that are contained in a ce:para XML element. For more examples refer to the tests.
91+
The typical usage pattern will be something like the following. In the below example, we are finding those sentences (identified by Genia) that are contained in a ce:para XML element. For more examples refer to the tests. We assume the AnnotationQueryPython wheel or egg has been installed.
9292

9393
```
94+
from AQPython.Query import *
95+
from AQPython.Utilities import *
96+
import pyspark
97+
from pyspark.storagelevel import StorageLevel
98+
9499
# Get a SparkSession
95100
spark = pyspark.sql.SparkSession.builder.getOrCreate()
96101

0 commit comments

Comments
 (0)