You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. After upgrading to version 0.5.0, I am unable to extract keyterms.
What I do:
importtextacyendoc=textacy.Doc(textacy.preprocess_text('''TEHRAN (FNA)- The Syrian Army and commanders of Al-Nusra Front (Tahrir al-Sham Hay'at or the Levant Liberation Board) are negotiating evacuation of the terrorists from the Southern countryside of Damascus city, a media outlet reported on Tuesday. The Arabic-language al-Etehad press quoted two well-informed sources as saying that Commander of Al-Nusra in Yarmouk Palestinian Refugee Camp Abu Bakr al-Amni and two of his aides have had a meeting with Colonel Talal al-Ali, one of the senior commanders of the Army, at the Patrolling Forces Building in Damascus on Wednesday to pave the way for the relocation of the remaining pockets of Al-Nusra fighters from the Southern countryside of Damascus city to Northern Syria. Al-Etehad further said that the Al-Nusra has been asked to hand over arms to the relevant officials, end military presence in Southern Syria in return for government amnesty for those who apply for pardoning to stay in the region. Al-Rijeh region and its nearby areas that are home to Al-Nusra militants are included in a truce agreement between the Syrian government, former Jeish al-Fatah and al-Nusra. The Arabic-language al-Watan daily quoted local sources as saying earlier this month that rifts and difference intensified among ISIL's commanders in recent days. The daily said that gaps went so deep among ISIL members and commanders in the town of Hajar al-Aswad and the Palestinian Yarmouk Refugee Camp in the Southern countryside of Damascus city that they defected and started independent organizations. Al-Watan further said that a number of ISIL fighters have escaped from the region towards other regions or surrendered to the Syrian Army troops.'''))
textacy.keyterms.textrank(endoc, n_keyterms=10)
What I get:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-4-709d60c77f28> in <module>()
----> 1 textacy.keyterms.textrank(endoc, n_keyterms=10)
AttributeError: module 'textacy' has no attribute 'keyterms'
Note that I have upgraded to textacy 0.5.0 with pip install textacy -U, receiving all updated deps.
Your Environment
textacy and spacy versions: 2.0.5, 0.5.0
Python version: 3.5, 2.7
Operating system and version: linux mint 18.2
The text was updated successfully, but these errors were encountered:
Hi @mosynaq , that module is no longer imported at the top-level of the package; all you have to add is import textacy.keyterms to let Python know what you're referring to.
Hi. After upgrading to version 0.5.0, I am unable to extract keyterms.
What I do:
What I get:
Note that I have upgraded to textacy 0.5.0 with
pip install textacy -U
, receiving all updated deps.Your Environment
textacy
andspacy
versions: 2.0.5, 0.5.0The text was updated successfully, but these errors were encountered: