-
Notifications
You must be signed in to change notification settings - Fork 11
42 lines (42 loc) · 1.36 KB
/
test_without_test_dependencies.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Test nlp_primitives without Test Dependencies
on:
pull_request:
types: [opened, synchronize]
push:
branches:
- main
workflow_dispatch:
jobs:
use_nlp_primitives_without_test_dependencies:
name: Test nlp_primitives without Test Dependencies
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Set up python 3.9
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Checkout repository
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Build nlp_primitives and install
run: |
make package
python -m pip install unpacked_sdist/
- name: Run simple nlp_primitives usage
run: |
import nlp_primitives
from featuretools.nlp_primitives import PolarityScore
data = ["hello, this is a new featuretools library",
"this will add new natural language primitives",
"we hope you like it!"]
pol = PolarityScore()
pol(data)
from featuretools.nlp_primitives import LSA
x = ["he helped her walk,", "me me me eat food", "the sentence doth long"]
lsa = LSA()
lsa(x)
shell: python