Skip to content

Commit

Permalink
Merge pull request #64 from INGEOTEC/develop
Browse files Browse the repository at this point in the history
Version - 2.4.13
  • Loading branch information
mgraffg authored Oct 24, 2024
2 parents faa9c2c + dc36e4c commit 880efe0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
shell: bash -l {0}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, macos-latest-large, windows-latest]
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
Expand All @@ -31,7 +31,7 @@ jobs:
run: |
conda install --yes pip
pip install twine
conda install --yes numpy scipy scikit-learn nose
conda install --yes numpy scipy scikit-learn
python setup.py sdist
python setup.py bdist_wheel
- name: Pip
Expand Down
2 changes: 1 addition & 1 deletion microtc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
The starting point is :py:class:`microtc.textmodel.TextModel`
"""
__version__ = "2.4.12"
__version__ = "2.4.13"

from microtc.textmodel import TextModel
16 changes: 16 additions & 0 deletions microtc/textmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,22 @@ def __init__(self, docs=None, text: str='text',
if docs is not None and len(docs):
self.fit(docs)

@property
def norm_emojis(self):
"""Normalize emojis"""
try:
return self._norm_emojis
except AttributeError:
self.norm_emojis = False
return self._norm_emojis

@norm_emojis.setter
def norm_emojis(self, value):
self._norm_emojis = value

@property
def unit_vector(self):
"""Unit vector"""
try:
return self._unit_vector
except AttributeError:
Expand All @@ -351,13 +365,15 @@ def unit_vector(self, value):

@property
def q_grams_words(self):
"""q-grams only on words"""
try:
return self._q_grams_words
except AttributeError:
return False

@property
def max_dimension(self):
"""Maximum dimension"""
try:
return self._max_dimension
except AttributeError:
Expand Down

0 comments on commit 880efe0

Please sign in to comment.